| 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; | 
| 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){ | 
| 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_); |