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

Comparing branches/development/src/applications/staticProps/BondOrderParameter.cpp (file contents):
Revision 1600 by gezelter, Wed Aug 3 20:20:37 2011 UTC vs.
Revision 1601 by gezelter, Thu Aug 4 20:04:35 2011 UTC

# Line 264 | Line 264 | namespace OpenMD {
264          for (int l = 0; l <= lMax_; l++) {
265            q2[l] = 0.0;
266            for (int m = -l; m <= l; m++){
267 <            q[std::make_pair(l,m)] /= (RealType)nBonds;            
267 >            q[std::make_pair(l,m)] /= (RealType)nBonds;
268              q2[l] += norm(q[std::make_pair(l,m)]);
269            }
270            q_l[l] = sqrt(q2[l] * 4.0 * NumericConstant::PI / (RealType)(2*l + 1));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines