Loading [MathJax]/extensions/tex2jax.js
PISM, A Parallel Ice Sheet Model 2.2.2-d6b3a29ca committed by Constantine Khrulev on 2025-03-28
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages

◆ compute_start_and_count()

static StartCountInfo pism::io::compute_start_and_count ( std::vector< AxisType > &  dim_types,
const std::array< int, 4 > &  start,
const std::array< int, 4 > &  count 
)
static

Assemble start and count arrays for use with I/O function calls.

This function re-arranges provided start and count (listed in the order T,X,Y,Z) to get start and count in the order matching the one in dim_types.

Definition at line 151 of file io_helpers.cc.

References count, pism::io::StartCountInfo::count, pism::io::StartCountInfo::start, pism::T_AXIS, pism::X_AXIS, pism::Y_AXIS, and pism::Z_AXIS.

Referenced by read_distributed_array().