--- trunk/mdtools/mpi_implementation/mpiSimulation.cpp 2002/10/09 22:56:09 132 +++ trunk/mdtools/mpi_implementation/mpiSimulation.cpp 2002/12/04 21:19:38 194 @@ -1,15 +1,28 @@ +#include +#include #include -#include -mpiSimulation::mpiSimulation() +#include "mpiSimulation.hpp" +#include "simError.h" + + + +mpiSimulation::mpiSimulation(SimInfo* the_entryPlug) { - int mpi_error; + entryPlug = the_entryPlug - MPI::Init(); + numberProcessors = MPI::COMM_WORLD.Get_size(); + myNode = worldRank; - numberProcessors = MPI::Comm::Get_size(); - myNode = MPI::Comm::Get_rank(); - MPI::Get_processor_name(processorName,&processorNameLen); + // let the simulkation know were there. + entryPlug->mpiSim = this; } +mpiSimulation::~mpiSimulation(){ + + // empty for now + +} + +