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

Comparing branches/new_design/OOPSE-3.0/src/brains/ForceManager.cpp (file contents):
Revision 1900 by tim, Fri Dec 10 16:14:53 2004 UTC vs.
Revision 1901 by tim, Tue Jan 4 22:18:36 2005 UTC

# Line 110 | Line 110 | void ForceManager::calcShortRangeInteraction() {
110  
111      }
112      
113 +    double  shortRangePotential = 0.0;
114 +    for (mol = info_->beginMolecule(mi); mol != NULL; mol = info_->nextMolecule(mi)) {
115 +        shortRangePotential += mol->getPotential();
116 +    }
117 +
118 +    Snapshot* curSnapshot = info_->getSnapshotManager()->getCurrentSnapshot();
119 +    curSnapshot->statData[Stats::SHORT_RANGE_POTENTIAL] = shortRangePotential;
120   }
121  
122   void ForceManager::calcLongRangeInteraction(bool needPotential, bool needStress) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines