Commit 5d21a3a6 by Francois Gygi

Added synchronization calls

git-svn-id: http://qboxcode.org/svn/qb/trunk@996 cba15fb0-1239-40c8-b417-11db7ca47a34
parent b21fa4c4
......@@ -559,8 +559,10 @@ void ConstraintSet::enforce(AtomSet& atoms)
rp=r0;
atoms.get_velocities(v0);
enforce_r(r0,rp);
atoms.sync_positions(rp);
atoms.set_positions(rp);
enforce_v(r0,v0);
atoms.sync_velocities(v0);
atoms.set_velocities(v0);
}
////////////////////////////////////////////////////////////////////////////////
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment