PISM, A Parallel Ice Sheet Model 2.3.2-fa1174726 committed by Constantine Khrulev on 2026-04-08
Loading...
Searching...
No Matches

◆ nprocs()

std::array< unsigned, 2 > pism::grid::nprocs ( unsigned int  size,
unsigned int  Mx,
unsigned int  My 
)

Computes the number of processors in the X- and Y-directions.

Definition at line 1372 of file Grid.cc.

References pism::RuntimeError::formatted(), and PISM_ERROR_LOCATION.

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