--- trunk/src/applications/staticProps/GofR.cpp 2005/02/16 19:36:30 353 +++ trunk/src/applications/staticProps/GofR.cpp 2005/02/17 16:21:07 360 @@ -46,8 +46,8 @@ namespace oopse { namespace oopse { -GofR::GofR(SimInfo* info, const std::string& filename, const std::string& sele1, const std::string& sele2) - : RadialDistrFunc(info, filename, sele1, sele2){ +GofR::GofR(SimInfo* info, const std::string& filename, const std::string& sele1, const std::string& sele2, double len, int nrbins) + : RadialDistrFunc(info, filename, sele1, sele2), len_(len), nRBins_(nrbins){ deltaR_ = len_ /nRBins_; @@ -120,7 +120,9 @@ void GofR::writeRdf() { } else { - + sprintf(painCave.errMsg, "GofR: unable to open %s\n", outputFilename_.c_str()); + painCave.isFatal = 1; + simError(); } rdfStream.close();