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

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