ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/SHAPES/GridBuilder.cpp
(Generate patch)

Comparing trunk/SHAPES/GridBuilder.cpp (file contents):
Revision 1305 by chrisfen, Fri Jun 25 17:51:51 2004 UTC vs.
Revision 1308 by chrisfen, Fri Jun 25 18:58:12 2004 UTC

# Line 68 | Line 68 | void GridBuilder::launchProbe(int forceField, vector<d
68    for (k =0; k < gridwidth; k++) {
69      thetaVal = thetaMin + k*thetaStep;
70      for (j=0; j < gridwidth; j++) {
71 <      phiVal = j*phiStep + 0.5*PI;
71 >      //s2kit10 is actually taking a grid from -pi/2 to 3pi/3, not 0 to 2pi...
72 >      phiVal = j*phiStep - 0.5*PI;
73 >       if (phiVal<0.0)
74 >         phiVal += 2*PI;
75  
76        rbMol->setEuler(0.0, thetaVal, phiVal);
77  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines