Struct Shape

Struct Documentation

struct Shape

Define Cartesian shape in MPI process topology.

Public Functions

inline Shape(const Config &config)
inline ~Shape()
inline void save() const

Public Members

MPI_Comm cart_comm = MPI_COMM_NULL
int myrank = -1
int n_procs = -1
int coord[ndims]
int x_procs
int y_procs
int z_procs
int x_procs_pos
int y_procs_pos
int z_procs_pos
int x_procs_neg
int y_procs_neg
int z_procs_neg
std::string mpi_save_dir

Public Static Attributes

static constexpr int ndims = 3