ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/integrators/SMIPDForceManager.cpp
(Generate patch)

Comparing trunk/OOPSE-4/src/integrators/SMIPDForceManager.cpp (file contents):
Revision 3465 by chuckv, Tue Oct 21 16:44:00 2008 UTC vs.
Revision 3469 by chuckv, Wed Oct 22 17:52:40 2008 UTC

# Line 340 | Line 340 | namespace oopse {
340            // mass = integrableObject->getMass();
341            Vector3d vertexForce = langevinForce/3.0;
342            (*vertex)->addFrc(vertexForce);
343 <          if (integrableObject->isDirectional()){
343 >
344 >          if ((*vertex)->isDirectional()){
345              Vector3d vertexPos = (*vertex)->getPos();
346              Vector3d vertexCentroidVector = vertexPos - centroid;
347              (*vertex)->addTrq(cross(vertexCentroidVector,vertexForce));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines