|
Nemo
2.4.0b
Simulate forward-in-time genetic evolution in a spatially explicit, individual-based stochastic simulator
|
MPI environment setup. More...
#include <MPImanager.h>
Collaboration diagram for MPIenv:Public Member Functions | |
| MPIenv (int *argc, char ***argv, MPImanager *&_p) | |
| bool | isMaster () const |
| int | workerCount () const |
| int | workerRank () const |
| std::string | hostName () const |
Static Public Member Functions | |
| static void | abort (int i) |
| static void | finish (MPImanager *p) |
Private Attributes | |
| int | size |
| int | rank |
| std::string | host |
MPI environment setup.
Provides basic node information: rank (0 is master, 1...size-1 are workers), hostname. Constructor creates the MPImanagers (Master or worker). This can be instantiated also in a single cpu situation, will return trivial values. The abort() function should always be used instead of exit().
| MPIenv::MPIenv | ( | int * | argc, |
| char *** | argv, | ||
| MPImanager *& | _p | ||
| ) |
|
static |
|
static |
Referenced by SimRunner::run().
|
inline |
|
inline |
|
inline |
References rank.
Referenced by BinaryDataSaver::finish(), FileServices::getFirstReplicateFileName(), and RAND::init().
|
private |
Referenced by hostName(), and MPIenv().
|
private |
Referenced by isMaster(), MPIenv(), and workerRank().
|
private |
Referenced by MPIenv(), and workerCount().
1.9.1 -- Nemo is hosted on