ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-3.0/src/applications/staticProps/GofXyz.cpp
(Generate patch)

Comparing trunk/OOPSE-3.0/src/applications/staticProps/GofXyz.cpp (file contents):
Revision 1995 by tim, Thu Feb 10 22:37:21 2005 UTC vs.
Revision 2038 by tim, Wed Feb 16 20:30:50 2005 UTC

# Line 46 | Line 46 | GofXyz::GofXyz(SimInfo* info, const std::string& filen
46  
47   namespace oopse {
48  
49 < GofXyz::GofXyz(SimInfo* info, const std::string& filename, const std::string& sele1, const std::string& sele2)
50 <    : RadialDistrFunc(info, filename, sele1, sele2){
49 > GofXyz::GofXyz(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      setOutputName(getPrefix(filename) + ".gxyz");
52  
53 +    deltaR_ = len_ / nRBins_;
54 +    
55 +    histogram_.resize(nRBins_);
56 +    for (int i = 0 ; i < nRBins_; ++i) {
57 +        histogram_[i].resize(nRBins_);
58 +        for(int j = 0; j < nRBins_; ++j) {
59 +            histogram_[i][j].resize(nRBins_);
60 +        }
61 +    }  
62   }
63  
64  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines