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

Comparing trunk/src/applications/staticProps/BondOrderParameter.cpp (file contents):
Revision 1785 by jmichalk, Wed Aug 22 18:43:27 2012 UTC vs.
Revision 1790 by gezelter, Thu Aug 30 17:18:22 2012 UTC

# Line 341 | Line 341 | namespace OpenMD {
341  
342      for (int l = 0; l <= lMax_; l++) {
343        if (q[l] >= MinQ_ && q[l] < MaxQ_) {
344 <        int qbin = (q[l] - MinQ_) / deltaQ_;
344 >        int qbin = int((q[l] - MinQ_) / deltaQ_);
345          Q_histogram_[std::make_pair(qbin,l)] += 1;
346          Qcount_[l]++;      
347        } else {
# Line 355 | Line 355 | namespace OpenMD {
355  
356      for (int l = 0; l <= lMax_; l++) {
357        if (real(what[l]) >= MinW_ && real(what[l]) < MaxW_) {
358 <        int wbin = (real(what[l]) - MinW_) / deltaW_;
358 >        int wbin = int((real(what[l]) - MinW_) / deltaW_);
359          W_histogram_[std::make_pair(wbin,l)] += 1;
360          Wcount_[l]++;      
361        } else {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines