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 1994 by tim, Thu Feb 10 18:14:03 2005 UTC vs.
Revision 1995 by tim, Thu Feb 10 22:37:21 2005 UTC

# Line 48 | Line 48 | GofXyz::GofXyz(SimInfo* info, const std::string& filen
48  
49   GofXyz::GofXyz(SimInfo* info, const std::string& filename, const std::string& sele1, const std::string& sele2)
50      : RadialDistrFunc(info, filename, sele1, sele2){
51 +    setOutputName(getPrefix(filename) + ".gxyz");
52  
53   }
54  
55  
56   void GofXyz::preProcess() {
57 <
57 >    /*
58      for (int i = 0; i < avgGofr_.size(); ++i) {
59          std::fill(avgGofr_[i].begin(), avgGofr_[i].end(), 0);
60      }
61 +    */
62   }
63  
64   void GofXyz::initalizeHistogram() {
65 +    /*
66      npairs_ = 0;
67      for (int i = 0; i < histogram_.size(); ++i)
68          std::fill(histogram_[i].begin(), histogram_[i].end(), 0);
69 +    */
70   }
71  
72  
73   void GofXyz::processHistogram() {
74  
75 +    /*
76      double volume = info_->getSnapshotManager()->getCurrentSnapshot()->getVolume();
77      double pairDensity = npairs_ /volume;
78 <    double pairConstant = ( 4.0 * PI * pairDensity ) / 3.0;
78 >    double pairConstant = ( 4.0 * NumericConstant::PI * pairDensity ) / 3.0;
79  
80      for(int i = 0 ; i < histogram_.size(); ++i){
81  
# Line 83 | Line 88 | void GofXyz::processHistogram() {
88              avgGofr_[i][j] += histogram_[i][j] / nIdeal;    
89          }
90      }
91 <
91 >    */
92   }
93  
94   void GofXyz::collectHistogram(StuntDouble* sd1, StuntDouble* sd2) {
95  
96 +    /*
97      if (sd1 == sd2) {
98          return;
99      }
# Line 107 | Line 113 | void GofXyz::collectHistogram(StuntDouble* sd1, StuntD
113      ++histogram_[whichRBin][whichThetaBin];
114      
115      ++npairs_;
116 +    */
117   }
118  
119   void GofXyz::writeRdf() {
# Line 123 | Line 130 | void GofXyz::writeRdf() {
130                  double y = deltaR_ * (j+ 0.5);
131  
132                  for(int k = 0;k < histogram_[i].size(); ++k) {
133 <                double z = deltaR_ * (k + 0.5);
134 <                rdfStream << x << "\t" << y << "\t" <<  z << "\t" << histogram_[i][j][k]/nProcessed_ << "\n";
133 >                    double z = deltaR_ * (k + 0.5);
134 >                    rdfStream << x << "\t" << y << "\t" <<  z << "\t" << histogram_[i][j][k]/nProcessed_ << "\n";
135 >                }
136              }
137          }
138          

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines