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

Comparing branches/development/src/parallel/ForceMatrixDecomposition.hpp (file contents):
Revision 1587 by gezelter, Fri Jul 8 20:25:32 2011 UTC vs.
Revision 1723 by gezelter, Thu May 24 20:59:54 2012 UTC

# Line 36 | Line 36
36   * [1]  Meineke, et al., J. Comp. Chem. 26, 252-271 (2005).            
37   * [2]  Fennell & Gezelter, J. Chem. Phys. 124, 234104 (2006).          
38   * [3]  Sun, Lin & Gezelter, J. Chem. Phys. 128, 24107 (2008).          
39 < * [4]  Vardeman & Gezelter, in progress (2009).                        
39 > * [4]  Kuang & Gezelter,  J. Chem. Phys. 133, 164101 (2010).
40 > * [5]  Vardeman, Stocker & Gezelter, J. Chem. Theory Comput. 7, 834 (2011).
41   */
42  
43   #ifndef PARALLEL_FORCEMATRIXDECOMPOSITION_HPP
# Line 55 | Line 56 | namespace OpenMD {
56    
57    class ForceMatrixDecomposition : public ForceDecomposition {
58    public:
59 <    ForceMatrixDecomposition(SimInfo* info, InteractionManager* iMan) : ForceDecomposition(info, iMan) {};
59 >    ForceMatrixDecomposition(SimInfo* info, InteractionManager* iMan);
60  
61      void distributeInitialData();
62      void zeroWorkArrays();
# Line 69 | Line 70 | namespace OpenMD {
70  
71      // group bookkeeping
72      groupCutoffs getGroupCutoffs(int cg1, int cg2);
73 +    Vector3d getGroupVelocityColumn(int cg2);
74  
75      // Group->atom bookkeeping
76      vector<int> getAtomsInGroupRow(int cg1);
# Line 90 | Line 92 | namespace OpenMD {
92      bool excludeAtomPair(int atom1, int atom2);
93      void addForceToAtomRow(int atom1, Vector3d fg);
94      void addForceToAtomColumn(int atom2, Vector3d fg);
95 +    Vector3d getAtomVelocityColumn(int atom2);
96  
97      // filling interaction blocks with pointers
98      void fillInteractionData(InteractionData &idat, int atom1, int atom2);
# Line 106 | Line 109 | namespace OpenMD {
109      vector<int> groupToGtype;
110  
111   #ifdef IS_MPI    
112 <    DataStorage atomRowData;
110 <    DataStorage atomColData;
112 >    DataStorage atomRowData;    DataStorage atomColData;
113      DataStorage cgRowData;
114      DataStorage cgColData;
115  
# Line 116 | Line 118 | namespace OpenMD {
118      int nGroupsInRow_;
119      int nGroupsInCol_;
120  
121 <    Communicator<Row, int>* AtomCommIntRow;
122 <    Communicator<Row, RealType>* AtomCommRealRow;
121 <    Communicator<Row, Vector3d>* AtomCommVectorRow;
122 <    Communicator<Row, Mat3x3d>*  AtomCommMatrixRow;
123 <    Communicator<Row, potVec>* AtomCommPotRow;
121 >    Communicator<Row> rowComm;
122 >    Communicator<Column> colComm;
123  
124 <    Communicator<Column, int>* AtomCommIntColumn;
125 <    Communicator<Column, RealType>* AtomCommRealColumn;
126 <    Communicator<Column, Vector3d>* AtomCommVectorColumn;
127 <    Communicator<Column, Mat3x3d>*  AtomCommMatrixColumn;
128 <    Communicator<Column, potVec>* AtomCommPotColumn;
124 >    Plan<int>* AtomPlanIntRow;
125 >    Plan<RealType>* AtomPlanRealRow;
126 >    Plan<Vector3d>* AtomPlanVectorRow;
127 >    Plan<Mat3x3d>*  AtomPlanMatrixRow;
128 >    Plan<potVec>* AtomPlanPotRow;
129  
130 <    Communicator<Row, int>* cgCommIntRow;
131 <    Communicator<Row, Vector3d>* cgCommVectorRow;
132 <    Communicator<Column, int>* cgCommIntColumn;
133 <    Communicator<Column, Vector3d>* cgCommVectorColumn;
130 >    Plan<int>* AtomPlanIntColumn;
131 >    Plan<RealType>* AtomPlanRealColumn;
132 >    Plan<Vector3d>* AtomPlanVectorColumn;
133 >    Plan<Mat3x3d>*  AtomPlanMatrixColumn;
134 >    Plan<potVec>* AtomPlanPotColumn;
135  
136 +    Plan<int>* cgPlanIntRow;
137 +    Plan<Vector3d>* cgPlanVectorRow;
138 +    Plan<int>* cgPlanIntColumn;
139 +    Plan<Vector3d>* cgPlanVectorColumn;
140 +
141      // work arrays for assembling potential energy
142      vector<potVec> pot_row;
143      vector<potVec> pot_col;
# Line 146 | Line 151 | namespace OpenMD {
151      vector<int> AtomRowToGlobal;
152      vector<int> AtomColToGlobal;
153  
154 + public:
155      vector<int> cgRowToGlobal;
156      vector<int> cgColToGlobal;
157  
158 + private:
159      vector<RealType> groupCutoffRow;
160      vector<RealType> groupCutoffCol;
161      vector<int> groupColToGtype;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines