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

Comparing branches/development/src/brains/Snapshot.cpp (file contents):
Revision 1539 by chuckv, Fri Jul 9 23:08:25 2010 UTC vs.
Revision 1540 by gezelter, Mon Jan 17 21:34:36 2011 UTC

# Line 59 | Line 59 | namespace OpenMD {
59      hmat_ = m;
60      invHmat_ = hmat_.inverse();
61      
62
62      //prepare fortran Hmat
63      RealType fortranHmat[9];
64      RealType fortranInvHmat[9];
# Line 137 | Line 136 | namespace OpenMD {
136        // calc the wrapped real coordinates from the wrapped scaled coordinates
137        pos = hmat_ * scaled;    
138  
139 <    } else {//if it is orthoRhombic, we could improve efficiency by only caculating the diagonal element
139 >    } else {
140 >
141 >      // if it is orthoRhombic, we could improve efficiency by only
142 >      // caculating the diagonal element
143      
144        // calc the scaled coordinates.
145        for (i=0; i<3; i++) {
# Line 152 | Line 154 | namespace OpenMD {
154        // calc the wrapped real coordinates from the wrapped scaled coordinates
155        for (i=0; i<3; i++) {
156          pos[i] = scaled[i] * hmat_(i, i);
157 <      }
156 <        
157 >      }  
158      }
158
159    }
160  
161    Vector3d Snapshot::getCOM() {
# Line 184 | Line 184 | namespace OpenMD {
184      }
185      return COMw_;
186    }
187
187   }
188    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines