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

Comparing trunk/src/applications/staticProps/TetrahedralityParamZ.cpp (file contents):
Revision 1879 by gezelter, Sun Jun 16 15:15:42 2013 UTC vs.
Revision 2025 by gezelter, Tue Oct 21 00:38:44 2014 UTC

# Line 235 | Line 235 | namespace OpenMD {
235        qZstream << "#z\tQk\n";
236        for (unsigned int i = 0; i < sliceQ_.size(); ++i) {
237          RealType z = zAve * (i+0.5) / sliceQ_.size();
238 <        qZstream << z << "\t" << sliceQ_[i] / sliceCount_[i] << "\n";
238 >        if (sliceCount_[i] != 0) {
239 >          qZstream << z << "\t" << sliceQ_[i] / sliceCount_[i] << "\n";
240 >        }
241        }
242        
243      } else {      

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines