| 46 | 
  | 
 | 
| 47 | 
  | 
namespace oopse { | 
| 48 | 
  | 
 | 
| 49 | 
< | 
GofR::GofR(SimInfo* info, const std::string& filename, const std::string& sele1, const std::string& sele2) | 
| 50 | 
< | 
    : RadialDistrFunc(info, filename, sele1, sele2){ | 
| 49 | 
> | 
GofR::GofR(SimInfo* info, const std::string& filename, const std::string& sele1, const std::string& sele2, double len, int nrbins) | 
| 50 | 
> | 
    : RadialDistrFunc(info, filename, sele1, sele2), len_(len), nRBins_(nrbins){ | 
| 51 | 
  | 
 | 
| 52 | 
  | 
    deltaR_ = len_ /nRBins_; | 
| 53 | 
  | 
     | 
| 120 | 
  | 
         | 
| 121 | 
  | 
    } else { | 
| 122 | 
  | 
 | 
| 123 | 
< | 
 | 
| 123 | 
> | 
        sprintf(painCave.errMsg, "GofR: unable to open %s\n", outputFilename_.c_str()); | 
| 124 | 
> | 
        painCave.isFatal = 1; | 
| 125 | 
> | 
        simError();   | 
| 126 | 
  | 
    } | 
| 127 | 
  | 
 | 
| 128 | 
  | 
    rdfStream.close(); |