ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/primitives/RigidBody.cpp
(Generate patch)

Comparing branches/development/src/primitives/RigidBody.cpp (file contents):
Revision 1844 by gezelter, Wed Jan 30 14:43:08 2013 UTC vs.
Revision 1845 by gezelter, Thu Jan 31 04:00:02 2013 UTC

# Line 290 | Line 290 | namespace OpenMD {
290  
291      for (unsigned int i = 0; i < atoms_.size(); i++) {
292        
293 +      atype = atoms_[i]->getAtomType();
294 +
295        afrc = atoms_[i]->getFrc();
296        apos = atoms_[i]->getPos();
297        rpos = apos - pos;
# Line 307 | Line 309 | namespace OpenMD {
309          atrq = atoms_[i]->getTrq();
310          trq += atrq;
311        }
312 +
313        if ((sl & DataStorage::dslElectricField) && (atype->isElectrostatic())) {
314          ef += atoms_[i]->getElectricField();
315          eCount++;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines