# | Line 1 | Line 1 | |
---|---|---|
1 | #include <mpi.h> | |
2 | #include <mpiSimulation.hpp> | |
3 | ||
4 | < | mpiSimulation::mpiSimulation() |
4 | > | mpiSimulation::mpiSimulation(void) |
5 | { | |
6 | – | int mpi_error; |
6 | ||
7 | MPI::Init(); | |
8 | ||
9 | < | numberProcessors = MPI::Comm::Get_size(); |
10 | < | myNode = MPI::Comm::Get_rank(); |
11 | < | MPI::Get_processor_name(processorName,&processorNameLen); |
9 | > | numberProcessors = MPI::COMM_WORLD.Get_size(); |
10 | > | myNode = MPI::COMM_WORLD.Get_rank(); |
11 | > | MPI::Get_processor_name(processorName,processorNameLen); |
12 | } | |
13 | ||
14 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |