NTPoly
Public Member Functions | Friends | List of all members
NTPoly::ProcessGrid Class Reference

A datatype which stores a process grid and all its communicators. More...

#include <ProcessGrid.h>

Public Member Functions

 ProcessGrid (MPI_Comm world_comm, int process_rows, int process_columns, int process_slices)
 
 ProcessGrid (int process_rows, int process_columns, int process_slices)
 
 ProcessGrid (MPI_Comm world_comm, int process_slices)
 
 ProcessGrid (int process_slices)
 
 ProcessGrid ()
 Construct the process grid with no parameters.
 
 ProcessGrid (const ProcessGrid &old_grid)
 
int GetMySlice ()
 Get the slice of the current process.
 
int GetMyColumn ()
 Get the column of the current process.
 
int GetMyRow ()
 Get the row of the current process.
 
int GetNumSlices ()
 Get the number of slices in this grid.
 
int GetNumColumns ()
 Get the number of columns in this grid.
 
int GetNumRows ()
 Get the number of rows in this grid.
 
 ~ProcessGrid ()
 Standard destructor.
 

Friends

class Matrix_ps
 

Detailed Description

A datatype which stores a process grid and all its communicators.

Constructor & Destructor Documentation

◆ ProcessGrid() [1/5]

NTPoly::ProcessGrid::ProcessGrid ( MPI_Comm  world_comm,
int  process_rows,
int  process_columns,
int  process_slices 
)

Construct the process grid.

Parameters
[in]world_comma communicator that every process in the grid is a part of.
[in]process_rowsnumber of grid rows.
[in]process_columnsnumber of grid columns.
[in]process_slicesnumber of grid slices.

◆ ProcessGrid() [2/5]

NTPoly::ProcessGrid::ProcessGrid ( int  process_rows,
int  process_columns,
int  process_slices 
)

Construct the process grid from comm world

Parameters
[in]process_rowsnumber of grid rows.
[in]process_columnsnumber of grid columns.
[in]process_slicesnumber of grid slices.

◆ ProcessGrid() [3/5]

NTPoly::ProcessGrid::ProcessGrid ( MPI_Comm  world_comm,
int  process_slices 
)

Construct the process grid.

Parameters
[in]world_comma communicator that every process in the grid is a part of.
[in]process_slicesnumber of grid slices.

◆ ProcessGrid() [4/5]

NTPoly::ProcessGrid::ProcessGrid ( int  process_slices)

Construct the process grid from comm world

Parameters
[in]process_slicesnumber of grid slices.

◆ ProcessGrid() [5/5]

NTPoly::ProcessGrid::ProcessGrid ( const ProcessGrid old_grid)

Copy constructor.

Parameters
old_gridto copy from.

The documentation for this class was generated from the following files: