ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
para_matrix_world.h
Go to the documentation of this file.
1#ifndef PARA_MATRIX_WORLD_H
2#define PARA_MATRIX_WORLD_H
3
4#include <cstddef>
5#include <vector>
6
7#include "para_world.h"
8
9namespace Parallel
10{
11
24{
25public:
30
31#ifdef __MPI
40 ParaMatrixWorld(const MPI_Comm& comm);
41#endif
42
44 int dim0() const { return dim0_; }
45
47 int dim1() const { return dim1_; }
48
50 int coord_row() const { return coord_row_; }
51
53 int coord_col() const { return coord_col_; }
54
55private:
56 int dim0_ = 1;
57 int dim1_ = 1;
58 int coord_row_ = 0;
59 int coord_col_ = 0;
60
61 void compute_proc_grid();
62};
63
64} // namespace Parallel
65
66#endif // PARA_MATRIX_WORLD_H
int coord_col() const
Column coordinate of this process in the grid.
Definition para_matrix_world.h:53
int dim0_
Definition para_matrix_world.h:56
ParaMatrixWorld()
Construct a serial matrix domain (1x1 process grid).
Definition para_matrix_world.cpp:6
int coord_row() const
Row coordinate of this process in the grid.
Definition para_matrix_world.h:50
int dim0() const
Process grid row count.
Definition para_matrix_world.h:44
void compute_proc_grid()
Definition para_matrix_world.cpp:20
int coord_col_
Definition para_matrix_world.h:59
int coord_row_
Definition para_matrix_world.h:58
int dim1_
Definition para_matrix_world.h:57
int dim1() const
Process grid column count.
Definition para_matrix_world.h:47
MPI_Comm comm() const
Underlying MPI communicator (MPI builds only).
Definition para_world.h:60
ParaWorld(const std::string &tag)
Construct a serial (single-process) domain.
Definition para_world.cpp:6
Definition para_band_output.cpp:11