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

Comparing trunk/OOPSE-4/src/applications/staticProps/GofAngle2.cpp (file contents):
Revision 2037 by tim, Wed Feb 16 19:36:30 2005 UTC vs.
Revision 2038 by tim, Wed Feb 16 20:30:50 2005 UTC

# Line 46 | Line 46 | GofAngle2::GofAngle2(SimInfo* info, const std::string&
46  
47   namespace oopse {
48  
49 < GofAngle2::GofAngle2(SimInfo* info, const std::string& filename, const std::string& sele1, const std::string& sele2)
50 <    : RadialDistrFunc(info, filename, sele1, sele2){
51 <    setOutputName(getPrefix(filename) + ".gfotw");
49 > GofAngle2::GofAngle2(SimInfo* info, const std::string& filename, const std::string& sele1,
50 >    const std::string& sele2, int nangleBins)
51 >    : RadialDistrFunc(info, filename, sele1, sele2), nAngleBins_(nangleBins) {
52  
53 +    setOutputName(getPrefix(filename) + ".gto");
54 +
55 +    deltaCosAngle_ = 2.0 / nAngleBins_;
56 +
57 +    histogram_.resize(nAngleBins_);
58 +    avgGofr_.resize(nAngleBins_);
59 +    for (int i = 0 ; i < nAngleBins_; ++i) {
60 +        histogram_[i].resize(nAngleBins_);
61 +        avgGofr_[i].resize(nAngleBins_);
62 +    }    
63 +
64   }
65  
66  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines