|
criptic v1
Cosmic Ray Interstellar Propagation Tool using Itô Calculus
|
A namespace to hold variables and functions related to MPI. More...
Classes | |
| struct | fillRequest |
| Struture to hold data representing a search request. More... | |
| struct | fillResponse |
| Struture to hold data representing a response to a request. More... | |
Enumerations | |
| enum | mpiTags { tagHDF5IO , tagWorkDone , tagFillReq = 8192 , tagFillResp = 16384 } |
| Tag numbers for different types of MPI messages. More... | |
Functions | |
| void | setup (int *argc, char **argv[]) |
| Initial MPI setup. | |
| void | haltRun (std::string msg, errCodes errcode) |
| Halt a run because an error has occurred. | |
| void | barrier () |
| Barrier between MPI ranks. | |
| void | shutdown () |
| Shut down communications for normal exit. | |
Variables | |
| int | nRank |
| int | myRank |
| bool | IOProc |
| int | log2nRank |
| MPI_Datatype | MPI_Real |
| MPI_Datatype | MPI_RealVec |
| MPI_Datatype | MPI_RealTensor2 |
| MPI_Datatype | MPI_Idx |
| MPI_Datatype | MPI_CRPacket |
| MPI_Datatype | MPI_CRSource |
| MPI_Datatype | MPI_FieldQty |
| MPI_Datatype | MPI_FieldQtyGrad |
| MPI_Datatype | MPI_RealMechArr |
| MPI_Datatype | MPI_FillReq |
| MPI_Datatype | MPI_FillResp |
| constexpr int | IORank = 0 |
A namespace to hold variables and functions related to MPI.
| void criptic::MPIUtil::barrier | ( | ) |
Barrier between MPI ranks.
This routine is a thin wrapper around MPI_Barrier
| void criptic::MPIUtil::haltRun | ( | std::string | msg, |
| errCodes | errcode | ||
| ) |
Halt a run because an error has occurred.
| msg | Error message to output |
| errcode | Error code to return |
This routine shuts down the MPI communication system and exits with the indicated error message and code
| void criptic::MPIUtil::setup | ( | int * | argc, |
| char ** | argv[] | ||
| ) |
Initial MPI setup.
| argc | Number of command line arguments |
| argv | Pointers to command line arguments |
This routine initializes MPI communication. If invoked when MPI is disabled at compile time, it simply sets internal flags to indicate that MPI is disabled.
| void criptic::MPIUtil::shutdown | ( | ) |
Shut down communications for normal exit.
This routine invoked MPI_Finalize to shut down MPI communications, prior to a successful exit.
| bool criptic::MPIUtil::IOProc |
Is this the processor that does I/O?
|
constexpr |
Rank that does I/O
| int criptic::MPIUtil::log2nRank |
log_2 (MPIUtil::nRank)
| MPI_Datatype criptic::MPIUtil::MPI_CRPacket |
MPI type for CR packets
| MPI_Datatype criptic::MPIUtil::MPI_CRSource |
MPI type for CR sources
| MPI_Datatype criptic::MPIUtil::MPI_FieldQty |
MPI type for FieldQty
| MPI_Datatype criptic::MPIUtil::MPI_FieldQtyGrad |
MPI type for FieldQtyGrad
| MPI_Datatype criptic::MPIUtil::MPI_FillReq |
MPI type for fill request
| MPI_Datatype criptic::MPIUtil::MPI_FillResp |
MPI type for fill response
| MPI_Datatype criptic::MPIUtil::MPI_Idx |
MPI type corresponding to criptic::IdxType
| MPI_Datatype criptic::MPIUtil::MPI_Real |
MPI type corresponding to criptic::Real
| MPI_Datatype criptic::MPIUtil::MPI_RealMechArr |
MPI type corresponding to Losses::MechArr<Real>
| MPI_Datatype criptic::MPIUtil::MPI_RealTensor2 |
MPI type corresponding to criptic::RealTensor2
| MPI_Datatype criptic::MPIUtil::MPI_RealVec |
MPI type corresponding to criptic::RealVec
| int criptic::MPIUtil::myRank |
Rank of this MPI process
| int criptic::MPIUtil::nRank |
Total number of MPI ranks