Function opensn::BuildLocationExtents
Defined in File mpi_utils.h
Function Documentation
-
std::vector<uint64_t> opensn::BuildLocationExtents(uint64_t local_size, const mpi::Communicator &comm)
Given each location’s local size (of items), builds a vector (dimension comm-size plus 1) of where each location’s global indices start and end. Example: location i starts at extents[i] and ends at extents[i+1]