ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/mdtools/mpi_implementation/mpiSimulation.cpp
Revision: 194
Committed: Wed Dec 4 21:19:38 2002 UTC (22 years, 5 months ago) by chuckv
File size: 398 byte(s)
Log Message:
First addition of mpiDivideLabor to split mpi simulation among processors.

File Contents

# User Rev Content
1 chuckv 194 #include <cstdlib>
2     #include <cstring>
3 chuckv 132 #include <mpi.h>
4 chuckv 122
5 chuckv 194 #include "mpiSimulation.hpp"
6     #include "simError.h"
7    
8    
9    
10     mpiSimulation::mpiSimulation(SimInfo* the_entryPlug)
11 chuckv 122 {
12 chuckv 194 entryPlug = the_entryPlug
13 chuckv 122
14 chuckv 194 numberProcessors = MPI::COMM_WORLD.Get_size();
15     myNode = worldRank;
16 chuckv 122
17 chuckv 194 // let the simulkation know were there.
18     entryPlug->mpiSim = this;
19 chuckv 122 }
20    
21    
22 chuckv 194 mpiSimulation::~mpiSimulation(){
23    
24     // empty for now
25    
26     }
27    
28