PISM, A Parallel Ice Sheet Model  stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900

◆ 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().