--- trunk/mdtools/mpi_implementation/mpiSimulation.cpp 2002/10/16 20:02:05 137 +++ trunk/mdtools/mpi_implementation/mpiSimulation.cpp 2002/12/04 21:19:38 194 @@ -1,14 +1,28 @@ +#include +#include #include -#include -mpiSimulation::mpiSimulation(void) -{ +#include "mpiSimulation.hpp" +#include "simError.h" -// MPI::Init(); + +mpiSimulation::mpiSimulation(SimInfo* the_entryPlug) +{ + entryPlug = the_entryPlug + numberProcessors = MPI::COMM_WORLD.Get_size(); - myNode = MPI::COMM_WORLD.Get_rank(); - // MPI::Get_processor_name(processorName,processorNameLen); + myNode = worldRank; + + // let the simulkation know were there. + entryPlug->mpiSim = this; } +mpiSimulation::~mpiSimulation(){ + + // empty for now + +} + +