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

◆ use_transposed_io()

static bool pism::io::use_transposed_io ( std::vector< AxisType dimension_types)
static

Check if the storage order of a variable in the current file matches the memory storage order used by PISM.

Parameters
[in]fileinput file
var_namename of the variable to check
Returns
false if storage orders match, true otherwise

Definition at line 353 of file io_helpers.cc.

References dimension_types(), pism::T_AXIS, pism::X_AXIS, pism::Y_AXIS, and pism::Z_AXIS.

Referenced by read_distributed_array(), and read_for_interpolation().