Highly Efficient FFT for Exascale: HeFFTe v2.3
heffte::rank_remap Struct Reference

Keeps the local rank and the map from the global rank to the sub-ranks used in the work. More...

#include <heffte_geometry.h>

Public Member Functions

 rank_remap ()
 Default constructor.
 
 rank_remap (int rank)
 Creates a new remap and initializes only the mpi_rank.
 
void set_subranks (size_t all_ranks, int sub_ranks)
 Build the map when using fixed number of sub-ranks.
 
void set_subranks (MPI_Comm global, MPI_Comm subcomm)
 Build the map when using user provided sub-communicator.
 
bool empty () const
 Indicates whether the remap is empty.
 

Public Attributes

int const mpi_rank
 The local rank.
 
std::vector< int > map
 Global to local map.
 
int size_subcomm
 The number of ranks in the sub-comm.
 

Detailed Description

Keeps the local rank and the map from the global rank to the sub-ranks used in the work.


The documentation for this struct was generated from the following file: