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

Comparing branches/development/src/integrators/NPT.cpp (file contents):
Revision 1715 by gezelter, Tue May 22 21:55:31 2012 UTC vs.
Revision 1759 by gezelter, Thu Jun 21 18:55:33 2012 UTC

# Line 277 | Line 277 | namespace OpenMD {
277             integrableObject = mol->nextIntegrableObject(j)) {
278                  
279          oldVel[index] = integrableObject->getVel();
280 <        oldJi[index] = integrableObject->getJ();
280 >
281 >        if (integrableObject->isDirectional())
282 >           oldJi[index] = integrableObject->getJ();
283 >
284          ++index;
285        }
286      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines