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

◆ compute_nprocs()

static void pism::compute_nprocs ( unsigned int  Mx,
unsigned int  My,
unsigned int  size,
unsigned int &  Nx,
unsigned int &  Ny 
)
static

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

Definition at line 312 of file Grid.cc.

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

Referenced by compute_ownership_ranges().