151 |
|
nRigidBodies_ += mol->getNRigidBodies(); |
152 |
|
nIntegrableObjects_ += mol->getNIntegrableObjects(); |
153 |
|
nCutoffGroups_ += mol->getNCutoffGroups(); |
154 |
< |
nConstraints_ += mol->getNConstraints(); |
154 |
> |
nConstraints_ += mol->getNConstraintPairs(); |
155 |
|
|
156 |
|
addExcludePairs(mol); |
157 |
|
|
176 |
|
nRigidBodies_ -= mol->getNRigidBodies(); |
177 |
|
nIntegrableObjects_ -= mol->getNIntegrableObjects(); |
178 |
|
nCutoffGroups_ -= mol->getNCutoffGroups(); |
179 |
< |
nConstraints_ -= mol->getNConstraints(); |
179 |
> |
nConstraints_ -= mol->getNConstraintPairs(); |
180 |
|
|
181 |
|
removeExcludePairs(mol); |
182 |
|
molecules_.erase(mol->getGlobalIndex()); |