ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/mdtools/interface_implementation/SimSetup.cpp
(Generate patch)

Comparing trunk/mdtools/interface_implementation/SimSetup.cpp (file contents):
Revision 144 by mmeineke, Thu Oct 17 21:59:12 2002 UTC vs.
Revision 145 by mmeineke, Fri Oct 18 15:34:21 2002 UTC

# Line 156 | Line 156 | void SimSetup::createSim( void ){
156    // create the atom and short range interaction arrays
157  
158    the_atoms = new Atom*[tot_atoms];
159 +  Atom::createArrays(tot_atoms);
160    the_molecules = new Molecule[tot_nmol];
161  
162  
# Line 392 | Line 393 | void SimSetup::makeAtoms( void ){
393          current_atom = comp_stamps[i]->getAtom( k );
394          if( current_atom->haveOrientation() ){
395  
396 <          dAtom = new DirectionalAtom;
396 >          dAtom = new DirectionalAtom(index);
397            simnfo->n_oriented++;
398            the_atoms[index] = dAtom;
399  
# Line 412 | Line 413 | void SimSetup::makeAtoms( void ){
413            dAtom->setSUz( uz );
414          }
415          else{
416 <          the_atoms[index] = new GeneralAtom;
416 >          the_atoms[index] = new GeneralAtom(index);
417          }
418          the_atoms[index]->setType( current_atom->getType() );
419          the_atoms[index]->setIndex( index );

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines