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

Comparing trunk/src/brains/DataStorage.hpp (file contents):
Revision 507 by gezelter, Fri Apr 15 22:04:00 2005 UTC vs.
Revision 963 by tim, Wed May 17 21:51:42 2006 UTC

# Line 105 | Line 105 | namespace oopse {
105      /** Sets the storage layout  */
106      void setStorageLayout(int layout);
107      /** Returns the pointer of internal array */
108 <    double *getArrayPointer(int whichArray);
108 >    RealType *getArrayPointer(int whichArray);
109  
110      std::vector<Vector3d> position;               /** position array */
111      std::vector<Vector3d> velocity;               /** velocity array */
112      std::vector<RotMat3x3d> aMat;            /** rotation matrix array */
113      std::vector<Vector3d> angularMomentum;/** angular momentum array (body-fixed) */
114      std::vector<Mat3x3d> electroFrame;                /** the lab frame unit std::vector array*/
115 <    std::vector<double> zAngle;              /** z -angle array */        
115 >    std::vector<RealType> zAngle;              /** z -angle array */        
116      std::vector<Vector3d> force;               /** force array */
117      std::vector<Vector3d> torque;               /** torque array */
118  
# Line 120 | Line 120 | namespace oopse {
120  
121    private:
122  
123 <    double* internalGetArrayPointer(std::vector<Vector3d>& v);
123 >    RealType* internalGetArrayPointer(std::vector<Vector3d>& v);
124              
125 <    double* internalGetArrayPointer(std::vector<RotMat3x3d>& v);
126 <    double* internalGetArrayPointer(std::vector<double>& v);
125 >    RealType* internalGetArrayPointer(std::vector<RotMat3x3d>& v);
126 >    RealType* internalGetArrayPointer(std::vector<RealType>& v);
127              
128      template<typename T>
129      void internalResize(std::vector<T>& v, int newSize);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines