ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/mpiSimulation.hpp
(Generate patch)

Comparing:
branches/mmeineke/OOPSE/libmdtools/mpiSimulation.hpp (file contents), Revision 377 by mmeineke, Fri Mar 21 17:42:12 2003 UTC vs.
trunk/OOPSE/libmdtools/mpiSimulation.hpp (file contents), Revision 1108 by tim, Wed Apr 14 15:37:41 2004 UTC

# Line 14 | Line 14 | class mpiSimulation{ (public)
14    mpiSimulation(SimInfo* the_entryPlug);
15    ~mpiSimulation();
16    
17 <  int *divideLabor( void );
17 >  void divideLabor();
18    
19    int  getMyNode(void)           { return mpiPlug->myNode; }
20    int  getNumberProcessors(void) { return mpiPlug->numberProcessors; }
21 <  int  getMyMolStart( void )     { return mpiPlug->myMolStart; }
22 <  int  getMyMolEnd( void )       { return mpiPlug->myMolEnd; }
23 <  int  getMyMol( void )          { return mpiPlug->myMol; }
24 <  int  getMyAtomStart( void )    { return mpiPlug->myAtomStart; }
25 <  int  getMyAtomEnd( void )      { return mpiPlug->myAtomEnd; }
21 >  int  getMyNMol( void )         { return mpiPlug->myNMol; }
22    int  getMyNlocal( void )       { return mpiPlug->myNlocal; }
23    int  getTotAtoms( void )       { return mpiPlug->nAtomsGlobal; }
24 <  
24 >  int  getTotNmol( void )        { return mpiPlug->nMolGlobal; }
25 >  int* getAtomToProcMap( void )  { return AtomToProcMap; }
26 >  int* getMolToProcMap( void )   { return MolToProcMap; }
27 >  int* getMolComponentType(void) { return MolComponentType; }
28 >  vector<int> getGlobalAtomIndex(void) {return globalAtomIndex; }
29 >  vector<int> getGlobalMolIndex(void) {return globalMolIndex;}
30 >  int getGlobalToLocalMol(int globalIndex) {return globalToLocalMol[globalIndex];}
31 >  int getGlobalToLocalAtom(int globalIndex) {return globalToLocalAtom[globalIndex];}
32  
33 +
34 +  //void globalToLocalMol(int globalIndex, int& whichNode, int& localIndex);
35 +  //void globalToLocalAtom(int globalIndex, int& whichNode, int& localIndex);
36 +
37    // sets the internal function pointer to fortran.
38  
39 <  void setInternal( void (*fSetup) setFortranMPIlist ){
39 >  void setInternal( setFortranMPI_TD fSetup){
40      setFsimParallel = fSetup;
41    }
42  
# Line 41 | Line 48 | class mpiSimulation{ (public)
48   protected:
49    SimInfo* entryPlug;
50    mpiSimData* mpiPlug;
51 <  
51 >  int *MolToProcMap;
52 >  int *MolComponentType;
53 >  int *AtomToProcMap;
54 >  int *AtomType;
55 >  vector<int> globalAtomIndex;
56 >  vector<int> globalMolIndex;
57 >
58 >  vector<int> globalToLocalMol;
59 >  vector<int> globalToLocalAtom;
60    // private function to initialize the fortran side of the simulation
61 <  void (*setFsimParallel) setFortranMPIlist;
61 >  setFortranMPI_TD setFsimParallel;
62  
63    // int *myIdents; // is needed by Cpp only. It tells the molecule which stamp it is.
64  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines