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