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: 1723
Committed: Wed Nov 10 02:58:55 2004 UTC (19 years, 8 months ago) by tim
File size: 959 byte(s)
Log Message:
mpiSimulation in progress

File Contents

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