Class Mpi
Defined in File mpi.hpp
Class Documentation
-
class Mpi
Public Functions
-
void ExchangeAll()
Exchange boundary elements in all directions (todo)
-
void ExchangeX1(IdefixArray4D<real> inputVc, IdefixArray4D<real> inputVs = IdefixArray4D<real>())
Exchange boundary elements in the X1 direction.
-
void ExchangeX2(IdefixArray4D<real> inputVc, IdefixArray4D<real> inputVs = IdefixArray4D<real>())
Exchange boundary elements in the X2 direction.
-
void ExchangeX3(IdefixArray4D<real> inputVc, IdefixArray4D<real> inputVs = IdefixArray4D<real>())
Exchange boundary elements in the X3 direction.
-
void Init(Grid *grid, std::vector<int> inputMap, int nghost[3], int nint[3], bool inputHaveVs = false)
Initialise an instance of the MPI class.
- Parameters
grid – pointer to the grid object (needed to get the MPI neighbours)
inputMap – 1st indices of inputVc which are to be exchanged (i.e, the list of variables)
nghost – size of the ghost region in each direction
nint – size of the internal region in each direction
inputHaveVs – whether the instance should also treat face-centered variable (optional, default false)
-
~Mpi()
-
void ExchangeAll()