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

Comparing trunk/src/applications/staticProps/DensityPlot.cpp (file contents):
Revision 1782 by gezelter, Wed Aug 22 02:28:28 2012 UTC vs.
Revision 1790 by gezelter, Thu Aug 30 17:18:22 2012 UTC

# Line 158 | Line 158 | namespace OpenMD {
158              continue;
159            }
160                
161 <          int which =wrappedZdist / deltaR_;        
161 >          int which = int(wrappedZdist / deltaR_);
162            density_[which] += nelectron * exp(-zdist*zdist/(sigma2*2.0)) /(slabVolume* sqrt(2*NumericConstant::PI*sigma*sigma));
163                
164          }            

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines