ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/applications/staticProps/BOPofR.cpp
(Generate patch)

Comparing branches/development/src/applications/staticProps/BOPofR.cpp (file contents):
Revision 1665 by gezelter, Tue Nov 22 20:38:56 2011 UTC vs.
Revision 1767 by gezelter, Fri Jul 6 22:01:58 2012 UTC

# Line 50 | Line 50
50   #include "primitives/Molecule.hpp"
51   #include "utils/NumericConstant.hpp"
52   #include "math/Wigner3jm.hpp"
53 + #include "brains/Thermo.hpp"
54  
55   using namespace MATPACK;
56   namespace OpenMD {
# Line 166 | Line 167 | namespace OpenMD {
167      RealType costheta;
168      RealType phi;
169      RealType r;
169    RealType dist;
170      Vector3d rCOM;
171      RealType distCOM;
172      Vector3d pos;
# Line 183 | Line 183 | namespace OpenMD {
183      std::vector<ComplexType> W_hat;
184      int nBonds, Nbonds;
185      SphericalHarmonic sphericalHarmonic;
186 <    int i, j;
187 <
186 >    int i;
187 >    
188      DumpReader reader(info_, dumpFilename_);    
189      int nFrames = reader.getNFrames();
190      frameCounter_ = 0;
191  
192 +    Thermo thermo(info_);
193 +
194      q_l.resize(lMax_+1);
195      q2.resize(lMax_+1);
196      w.resize(lMax_+1);
# Line 204 | Line 206 | namespace OpenMD {
206        reader.readFrame(istep);
207        frameCounter_++;
208        currentSnapshot_ = info_->getSnapshotManager()->getCurrentSnapshot();
209 <      CenterOfMass = info_->getCom();
209 >      CenterOfMass = thermo.getCom();
210        if (evaluator_.isDynamic()) {
211          seleMan_.setSelectionSet(evaluator_.evaluate());
212        }
# Line 302 | Line 304 | namespace OpenMD {
304              }
305            }
306            
307 <          w_hat[l] = w[l] / pow(q2[l], 1.5);
307 >          w_hat[l] = w[l] / pow(q2[l], RealType(1.5));
308          }
309  
310          collectHistogram(q_l, w_hat, distCOM);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines