--- trunk/OOPSE/libmdtools/SimSetup.cpp 2003/04/08 21:35:49 481 +++ trunk/OOPSE/libmdtools/SimSetup.cpp 2003/04/10 20:08:56 489 @@ -328,7 +328,7 @@ void SimSetup::createSim( void ){ for( j=0; jgetNAtoms(); local_bonds += comp_stamps[i]->getNBonds(); @@ -385,6 +385,7 @@ void SimSetup::createSim( void ){ if(mol2proc[i] == worldRank ){ the_molecules[molIndex].setStampID( molCompType[i] ); the_molecules[molIndex].setMyIndex( molIndex ); + the_molecules[molIndex].setGlobalIndex( i ); molIndex++; } } @@ -396,6 +397,7 @@ void SimSetup::createSim( void ){ for(j=0; jidentArray = new int[simnfo->n_atoms]; + simnfo->molMembershipArray = new int[simnfo->n_atoms]; for(i=0; in_atoms; i++){ simnfo->identArray[i] = the_atoms[i]->getIdent(); + } + for(i=0; i< simnfo->n_mol; i++) { + the_molecules[i].atomicRollCall(simnfo->molMembershipArray); } if (the_globals->getUseRF() ) { @@ -728,13 +734,9 @@ void SimSetup::createSim( void ){ if( !strcmp( force_field, "TraPPE_Ex" ) ){ new Symplectic(simnfo, the_ff, the_extendedsystem); - std::cerr << "called new Symplecic\n"; - fprintf( stderr, "called new Symplectic. stderr\n" ); } else if( !strcmp( force_field, "LJ" ) ){ new Verlet( *simnfo, the_ff, the_extendedsystem ); - std::cerr << "called new Verlet\n"; - fprintf( stderr, "called new Verlet. stderr\n" ); } else { std::cerr << "I'm a bug.\n";