Template Class MPICartesianUtils
Defined in File MPICartesianUtils.hpp
Class Documentation
-
template<DimType DIM>
class MPICartesianUtils Public Functions
-
MPICartesianUtils() = default
-
inline MPICartesianUtils(CommunicatorType comm)
-
explicit MPICartesianUtils(const MPICartesianUtils &other) = delete
-
MPICartesianUtils &operator=(const MPICartesianUtils&) = delete
-
explicit MPICartesianUtils(MPICartesianUtils &&other) = default
-
MPICartesianUtils &operator=(MPICartesianUtils &&other) = default
-
virtual ~MPICartesianUtils() = default
-
inline CommunicatorType getComm() const
-
inline IndexArray<DIM> getPartitionCoordsOfRank(RankType r) const
Get the cartesian coordinates of a rank in the local cartesian communicator.
- Parameters:
r – local rank
- Returns:
coordinates in the cartesian grid of processes in local comm
-
inline std::vector<RankType> getAllMyPoleNeighborRanks(DimType dim) const
get a vector containing the ranks of all my cartesian neighboring ranks in dimension dim (not only the direct neighbors, all of them)
-
inline std::vector<int> getCartesianDimensionsVector() const
-
inline int getCommunicatorSize() const
-
MPICartesianUtils() = default