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

Comparing trunk/src/applications/staticProps/BondAngleDistribution.cpp (file contents):
Revision 1918 by gezelter, Sun Jun 16 15:15:42 2013 UTC vs.
Revision 1919 by jmarr, Wed Jul 31 18:03:35 2013 UTC

# Line 174 | Line 174 | namespace OpenMD {
174                Vector3d vec2 = bondvec[j];
175                
176                vec2.normalize();
177 <            
177 >              
178                RealType theta = acos(dot(vec1,vec2))*180.0/NumericConstant::PI;
179              
179                
180 +              
181                if (theta > 180.0){
182                  theta = 360.0 - theta;
183                }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines