ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE_old/src/mdtools/libmdCode/mpiSimulation.cpp
(Generate patch)

Comparing trunk/OOPSE_old/src/mdtools/libmdCode/mpiSimulation.cpp (file contents):
Revision 274 by mmeineke, Mon Feb 17 21:27:47 2003 UTC vs.
Revision 294 by mmeineke, Thu Mar 6 17:04:09 2003 UTC

# Line 1 | Line 1
1   #include <cstdlib>
2   #include <cstring>
3   #include <mpi.h>
4 + #include <mpi++.h>
5  
6   #include "mpiSimulation.hpp"
7   #include "simError.h"
8 + #include <fortranWrappers.hpp>
9  
8 extern "C"{
9  void wrapsimparallelmod_( void (*wrapFunction)(void (*fSub)( mpiSimData*,
10                                                               int*, int*,
11                                                               int*)));
12 }
10  
14 void wrapSimParallel(void (*fSub)(mpiSimData*, int*, int*, int*));
11  
12  
13   mpiSimulation* mpiSim;
# Line 25 | Line 21 | mpiSimulation::mpiSimulation(SimInfo* the_entryPlug)
21    mpiPlug->myNode = worldRank;
22    
23    mpiSim = this;
24 <  wrapMe();
29 <
24 >  wrapMeSimParallel( this );
25   }
26  
27  
# Line 37 | Line 32 | void mpiSimulation::wrapMe(){
32    
33   }
34  
40 void mpiSimulation::wrapMe(){
35  
42  wrapsimparallelmod_( wrapSimParallel );
43 }
36  
45
46
37   int* mpiSimulation::divideLabor( void ){
38  
39    int* globalIndex;
# Line 197 | Line 187 | void wrapSimParallel(void (*fSub)(mpiSimData*, int*, i
187   }
188  
189  
200 void wrapSimParallel(void (*fSub)(mpiSimData*, int*, int*, int*)){
201  
202  mpiSim->setInternal( fSub );
203 }
204
205
190   void mpiSimulation::mpiRefresh( void ){
191  
192    int isError, i;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines