--- trunk/mdtools/interface_implementation/SimSetup.cpp 2002/09/23 15:12:56 113 +++ trunk/mdtools/interface_implementation/SimSetup.cpp 2002/09/24 22:10:55 117 @@ -343,12 +343,17 @@ void SimSetup::makeAtoms( void ){ double ux, uy, uz, uSqr, u; AtomStamp* current_atom; DirectionalAtom* dAtom; + int molIndex, molStart, molEnd, nMemb; + + molIndex = 0; index = 0; for( i=0; igetNAtoms(); for( k=0; kgetNAtoms(); k++ ){ current_atom = comp_stamps[i]->getAtom( k ); @@ -382,6 +387,13 @@ void SimSetup::makeAtoms( void ){ // increment the index and repeat; index++; } + + molEnd = index -1; + the_molecules[molIndex].setNMembers( nMemb ); + the_molecules[molIndex].setStartAtom( molStart ); + the_molecules[molIndex].setEndAtom( molEnd ); + molIndex++; + } } @@ -487,18 +499,6 @@ void SimSetup::makeMolecules( void ){ the_ff->initializeTorsions( the_torsions ); } -void SimSetup::makeMolecules( void ){ - - int i,j,k; - - for( i=0; i