--- trunk/src/applications/staticProps/RadialDistrFunc.cpp 2005/02/09 17:08:22 306 +++ trunk/src/applications/staticProps/RadialDistrFunc.cpp 2005/02/10 18:14:03 310 @@ -45,8 +45,8 @@ namespace oopse { namespace oopse { -RadialDistrFunc:: RadialDistrFunc(SimInfo* info, const std::string& filename, const std::string& sele1, const std::string& sele2, double len) - : info_(info), currentSnapshot_(NULL), dumpFilename_(filename), len_(len), nbins_(50), step_(1), +RadialDistrFunc:: RadialDistrFunc(SimInfo* info, const std::string& filename, const std::string& sele1, const std::string& sele2) + : info_(info), currentSnapshot_(NULL), dumpFilename_(filename), step_(1), selectionScript1_(sele1), selectionScript2_(sele2), evaluator1_(info), evaluator2_(info){ evaluator1_.loadScriptString(sele1); @@ -59,7 +59,6 @@ RadialDistrFunc:: RadialDistrFunc(SimInfo* info seleMan2_.setSelectionSet(evaluator2_->evaluate()); } - delta_ = len_ /nbins_; } void RadialDistrFunc::process() { @@ -68,7 +67,7 @@ void RadialDistrFunc::process() { DumpReader reader(info_, dumpFilename_); int nFrames = reader->getNFrames(); - + nProcessed_ = nFrames / step_ + 1; for (int i = 0; i < nFrames; i += step_) { reader->readFrame(i); currentSnapshot_ = info_->getSnapshotManager()->getCurrentSnapshot(); @@ -99,7 +98,7 @@ void RadialDistrFunc::process() { postProcess(); - + writeRdf(); } }