--- branches/new_design/OOPSE-2.0/src/brains/SimInfo.cpp 2004/12/05 22:02:42 1854 +++ branches/new_design/OOPSE-2.0/src/brains/SimInfo.cpp 2004/12/06 04:49:53 1856 @@ -146,6 +146,8 @@ bool SimInfo::addMolecule(Molecule* mol) { nCutoffGroups_ += mol->getNCutoffGroups(); nConstraints_ += mol->getNConstraints(); + addExcludePairs(mol); + return true; } else { return false; @@ -169,6 +171,7 @@ bool SimInfo::removeMolecule(Molecule* mol) { nCutoffGroups_ -= mol->getNCutoffGroups(); nConstraints_ -= mol->getNConstraints(); + removeExcludePairs(mol); molecules_.erase(mol->getGlobalIndex()); delete mol;