PISM, A Parallel Ice Sheet Model  stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800

◆ compute_ownership_ranges()

static OwnershipRanges pism::compute_ownership_ranges ( unsigned int  Mx,
unsigned int  My,
unsigned int  size 
)
static

Compute processor ownership ranges using the grid size, MPI communicator size, and command-line options -Nx, -Ny, -procs_x, -procs_y.

Definition at line 391 of file Grid.cc.

References compute_nprocs(), pism::RuntimeError::formatted(), k, pism::Grid::Mx(), pism::Grid::My(), ownership_ranges(), PISM_ERROR_LOCATION, pism::Grid::size(), pism::OwnershipRanges::x, and pism::OwnershipRanges::y.

Referenced by pism::grid::Parameters::ownership_ranges_from_options().