31 MPI_Comm_rank(MPI_COMM_WORLD, &mpi_rank);
36 unsigned int const n_files)
40 std::vector<std::size_t>
const partition_sizes =
45 std::vector<std::size_t>
const partition_offsets =
49 std::size_t longest_partition =
50 *max_element(partition_sizes.begin(), partition_sizes.end());
53 return {partition_offsets[mpi.rank], size, longest_partition,
54 partition_offsets.back()};
Dispatches HDF5 functions specific to execution platform (w/o MPI). There are multiple implementation...
Assigns to each MPI communicator an output file name by attribute color There are multiple implementa...
static std::vector< T > allgather(T const &value, Mpi const &mpi)
std::vector< ranges::range_value_t< R > > sizesToOffsets(R const &sizes)
FileCommunicator getCommunicator(unsigned int const n_files)
PartitionInfo getPartitionInfo(std::size_t const size, unsigned int const n_files)
Dispatches functions specific to execution platform (w/o MPI)
MPI_Comm mpi_communicator