# | 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) { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |