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

Comparing branches/development/src/brains/Snapshot.hpp (file contents):
Revision 1550 by gezelter, Wed Apr 27 21:49:59 2011 UTC vs.
Revision 1551 by gezelter, Thu Apr 28 18:38:21 2011 UTC

# Line 205 | Line 205 | namespace OpenMD{
205        COMvel_ = COMvel;
206        COMw_ = COMw;
207        hasCOM_ = true;
208    }
209
210    Vector3d getAtomPosByIindex(int iIndex) {
211 #ifdef IS_MPI
212      return atomIData.position[iIndex];
213 #else
214      return atomData.position[iIndex];
215 #endif
216    }
217    Vector3d getAtomPosByJindex(int jIndex) {
218 #ifdef IS_MPI
219      return atomJData.position[jIndex];
220 #else
221      return atomData.position[jIndex];
222 #endif
223    }
224
225    Vector3d getCutoffGroupPosByIindex(int iIndex) {
226 #ifdef IS_MPI
227      return cgIData.position[iIndex];
228 #else
229      return cgData.position[iIndex];
230 #endif
208      }
232    Vector3d getCutoffGroupPosByJindex(int jIndex) {
233 #ifdef IS_MPI
234      return cgJData.position[jIndex];
235 #else
236      return cgData.position[jIndex];
237 #endif
238    }
209  
210      DataStorage atomData;
211      DataStorage rigidbodyData;
212      DataStorage cgData;
213      Stats statData;
214  
245 #ifdef IS_MPI
246    DataStorage atomIData;
247    DataStorage atomJData;
248    DataStorage cgIData;
249    DataStorage cgJData;
250 #endif
251  
252            
215    private:
216      RealType currentTime_;
217  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines