--- branches/development/src/applications/staticProps/SpatialStatistics.cpp 2013/05/17 17:10:11 1876 +++ trunk/src/applications/staticProps/SpatialStatistics.cpp 2013/06/18 17:48:52 1887 @@ -141,7 +141,7 @@ namespace OpenMD { processStuntDouble( sd, bin ); dynamic_cast(counts_->accumulator[bin])->add(1); - } + } } @@ -323,12 +323,12 @@ namespace OpenMD { } SlabStatistics::~SlabStatistics() { - delete z_; } void SlabStatistics::processFrame(int istep) { RealType z; + hmat_ = currentSnapshot_->getHmat(); for (int i = 0; i < nBins_; i++) { z = (((RealType)i + 0.5) / (RealType)nBins_) * hmat_(2,2); @@ -372,7 +372,6 @@ namespace OpenMD { } ShellStatistics::~ShellStatistics() { - delete r_; } int ShellStatistics::getBin(Vector3d pos) {