Ignore:
Timestamp:
Mar 12, 2010, 1:16:01 PM (16 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
d639c7
Parents:
1e0785
Message:

Made the periodentafel use STL-containers instead of custom llists

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/builder.cpp

    r1e0785 r5dba7a  
    15931593                }
    15941594                LCList = new LinkedCell(Boundary, 2.*radius);
    1595                 element *elemental = periode->FindElement((const int) atoi(argv[argptr]));
     1595                const element *elemental = periode->FindElement((atomicNumber_t) atoi(argv[argptr]));
    15961596                FindNonConvexBorder(Boundary, TesselStruct, LCList, radius, NULL);
    15971597                int ranges[NDIM] = {1,1,1};
     
    20702070                  int faktor = atoi(argv[argptr++]);
    20712071                  int count;
    2072                   element ** Elements;
     2072                  const element ** Elements;
    20732073                  Vector ** vectors;
    20742074                  if (faktor < 1) {
    2075                     eLog() << Verbose(1) << "Repetition factor mus be greater than 1!" << endl;
     2075                    eLog() << Verbose(1) << "Repetition factor must be greater than 1!" << endl;
    20762076                    faktor = 1;
    20772077                  }
     
    20792079                  if (mol->AtomCount != 0) {  // if there is more than none
    20802080                    count = mol->AtomCount;   // is changed becausing of adding, thus has to be stored away beforehand
    2081                     Elements = new element *[count];
     2081                    Elements = new const element *[count];
    20822082                    vectors = new Vector *[count];
    20832083                    j = 0;
Note: See TracChangeset for help on using the changeset viewer.