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

Comparing branches/development/src/applications/staticProps/AngleR.cpp (file contents):
Revision 1793 by gezelter, Fri Jul 6 22:01:58 2012 UTC vs.
Revision 1794 by gezelter, Thu Sep 6 19:44:06 2012 UTC

# Line 113 | Line 113 | namespace OpenMD {
113            RealType cosangle = dot(r1, dipole);
114            
115            if (distance < len_) {
116 <            int whichBin = distance / deltaR_;
116 >            int whichBin = int(distance / deltaR_);
117              histogram_[whichBin] += cosangle;
118              count_[whichBin] += 1;
119            }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines