|
METHOD
|
#include <parallelEnv.h>


Public Member Functions | |
| ParallelEnv (int *argcP, char **argvP[], int nxRanks, int nyRanks, int nzRanks, int testing=0) | |
| virtual | ~ParallelEnv () |
| int | isNeighbourExternal (int dimension, int direction) |
| void | setParallelDecomposition (int xPeriodic, int yPeriodic, int zPeriodic) |
Public Member Functions inherited from PlatformEnv | |
| PlatformEnv (int testing=0) | |
| virtual | ~PlatformEnv () |
Public Attributes | |
| MPI_Comm | mpiCartesianComm |
| MPI_Info | mpiInfo |
Public Attributes inherited from PlatformEnv | |
| int | nProc |
| int | rank |
| int | testing |
| int | nxRanks |
| int | nyRanks |
| int | nzRanks |
| int | xRankId |
| int | yRankId |
| int | zRankId |
| int | leftXNeighbourRank |
| int | rightXNeighbourRank |
| int | leftYNeighbourRank |
| int | rightYNeighbourRank |
| int | leftZNeighbourRank |
| int | rightZNeighbourRank |
For a 2D problem, specify nzRanks = 1 For a 1D problem, specify nzRanks = 1, nyRanks = 1
The number of ranks in each dimension must be a factor of the number of cells in the dimension
Definition at line 19 of file parallelEnv.h.
| ParallelEnv::ParallelEnv | ( | int * | argcP, |
| char ** | argvP[], | ||
| int | nxRanks, | ||
| int | nyRanks, | ||
| int | nzRanks, | ||
| int | testing = 0 |
||
| ) |
Constructor – Initialize global MPI communicator.
|
virtual |
Destructor.
| int ParallelEnv::isNeighbourExternal | ( | int | dimension, |
| int | direction | ||
| ) |
Check for external boundary.
| [in] | dimension | {x=0, y=1, z=2} |
| [in] | direction | direction to look for the external boundary in a particular direction {low=0, high=1} |
| void ParallelEnv::setParallelDecomposition | ( | int | xPeriodic, |
| int | yPeriodic, | ||
| int | zPeriodic | ||
| ) |
Create cartesian grid of processes and calculate neighbours along that grid for each process.
| [in] | xPeriodic | whether the x dimension has periodic boundary conditions |
| [in] | yPeriodic | whether the y dimension has periodic boundary conditions |
| [in] | zPeriodic | whether the z dimension has periodic boundary conditions |
| MPI_Comm ParallelEnv::mpiCartesianComm |
Cartesian MPI communicator that maps processes to the simulation grid.
Definition at line 22 of file parallelEnv.h.
| MPI_Info ParallelEnv::mpiInfo |
MPI information channel.
Definition at line 23 of file parallelEnv.h.