Loading...
Searching...
No Matches
level_comms.hpp File Reference
#include <cassert>
#include <stdexcept>
#include <vector>
#include "terra/mpi/mpi.hpp"

Go to the source code of this file.

Namespaces

namespace  terra
 
namespace  terra::mpi
 

Functions

std::vector< MPI_Comm > terra::mpi::build_level_comms (MPI_Comm root_comm, const std::vector< int > &factors)
 Build a nested ladder of sub-communicators for hierarchical agglomeration.
 
MPIRank terra::mpi::agglomerate_rank (MPIRank parent_rank, int factor)
 Translate a parent-comm rank into its agglomerated sub-comm rank.
 
void terra::mpi::free_level_comms (std::vector< MPI_Comm > &level_comms)
 Free a level-comm ladder. Call once at MG teardown.