ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-3.0/src/brains/SimInfo.cpp
(Generate patch)

Comparing branches/new_design/OOPSE-3.0/src/brains/SimInfo.cpp (file contents):
Revision 1895 by tim, Thu Dec 16 19:20:49 2004 UTC vs.
Revision 1901 by tim, Tue Jan 4 22:18:36 2005 UTC

# Line 151 | Line 151 | bool SimInfo::addMolecule(Molecule* mol) {
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          
# Line 176 | Line 176 | bool SimInfo::removeMolecule(Molecule* mol) {
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());

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines