ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-3.0/src/brains/mpiSimulation.hpp
Revision: 1722
Committed: Tue Nov 9 23:11:39 2004 UTC (19 years, 10 months ago) by tim
File size: 1350 byte(s)
Log Message:
adding ForceManager

File Contents

# User Rev Content
1 gezelter 1490 #ifndef __MPISIMULATION__
2     #define __MPISIMULATION__
3    
4 tim 1492 #include "brains/SimInfo.hpp"
5     #include "types/MakeStamps.hpp"
6 gezelter 1490 #define __C
7 tim 1492 #include "UseTheForce/mpiComponentPlan.h"
8 gezelter 1490
9 chuckv 1619 #include "UseTheForce/DarkSide/simParallel_interface.h"
10 gezelter 1490
11     class mpiSimulation{
12     public:
13    
14 tim 1722 mpiSimulation(MoleculeStamp** mol);
15 gezelter 1490 ~mpiSimulation();
16    
17     void divideLabor();
18    
19 tim 1722 int getMyNode() { return parallelData->myNode; }
20     int getNProcessors() { return parallelData->nProcessors; }
21     int getNMolLocal() { return parallelData->nMolLocal; }
22     int getNMolGlobal() { return parallelData->nMolGlobal; }
23     int getNAtomsLocal() { return parallelData->nAtomsLocal; }
24     int getNAtomsGlobal() { return parallelData->nAtomsGlobal; }
25     int getNGroupsLocal() { return parallelData->nGroupsLocal; }
26     int getNGroupsGlobal() { return parallelData->nGroupsGlobal; }
27    
28     int* getMolToProcMap() { return MolToProcMap; }
29 gezelter 1490
30 tim 1722 vector<int> getGlobalAtomIndex() {return globalAtomIndex; }
31     vector<int> getGlobalGroupIndex() {return globalGroupIndex; }
32     vector<int> getGlobalMolIndex() {return globalMolIndex;}
33    
34 gezelter 1490 // call at the begining and after load balancing
35    
36 tim 1722 void mpiRefresh( );
37 gezelter 1490
38     protected:
39 tim 1722
40 gezelter 1490 mpiSimData* parallelData;
41     int *MolToProcMap;
42 tim 1722
43    
44    
45 gezelter 1490 vector<int> globalAtomIndex;
46     vector<int> globalMolIndex;
47     vector<int> globalGroupIndex;
48    
49     };
50    
51     #endif