ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/applications/staticProps/P2OrderParameter.cpp
(Generate patch)

Comparing trunk/src/applications/staticProps/P2OrderParameter.cpp (file contents):
Revision 1543 by gezelter, Tue Mar 15 20:55:16 2011 UTC vs.
Revision 1558 by gezelter, Wed May 11 16:32:48 2011 UTC

# Line 213 | Line 213 | namespace OpenMD {
213            Vector3d vec = j->first->getPos() - j->second->getPos();
214            if (usePeriodicBoundaryConditions_)
215              currentSnapshot_->wrapVector(vec);
216 <          vec.normalize();
217 <          
216 >          vec.normalize();          
217            angle += acos(dot(vec, director)) ;
218          }
219          angle = angle / (sdPairs_.size() * NumericConstant::PI) * 180.0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines