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

Comparing branches/development/src/applications/staticProps/SpatialStatistics.cpp (file contents):
Revision 1873 by gezelter, Wed Apr 17 18:24:08 2013 UTC vs.
Revision 1874 by gezelter, Wed May 15 15:09:35 2013 UTC

# Line 319 | Line 319 | namespace OpenMD {
319        z_->accumulator.push_back( new Accumulator() );
320      data_.push_back(z_);
321    }
322 +
323 +  SlabStatistics::~SlabStatistics() {
324 +    delete z_;
325 +  }
326 +
327  
328    void SlabStatistics::processFrame(int istep) {
329      RealType z;
# Line 342 | Line 347 | namespace OpenMD {
347      return int(nBins_ * (pos.z() / hmat_(2,2) + 0.5)) % nBins_;  
348    }
349  
345
350    ShellStatistics::ShellStatistics(SimInfo* info, const string& filename,
351                                     const string& sele, int nbins) :
352      SpatialStatistics(info, filename, sele, nbins){
# Line 366 | Line 370 | namespace OpenMD {
370      }
371    }
372  
373 +  ShellStatistics::~ShellStatistics() {
374 +    delete r_;
375 +  }
376 +
377    int ShellStatistics::getBin(Vector3d pos) {    
378      Vector3d rPos = pos - coordinateOrigin_;
379      return int(rPos.length() / binWidth_);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines