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

◆ transpose() [1/2]

static void pism::io::transpose ( const double input,
const std::vector< AxisType > &  input_axes,
const std::array< int, 4 > &  count,
double output 
)
static

Transpose data in input, putting results in output.

We assume that both input and output hold prod(count) elements.

The output array uses the Y,X,Z order (columns in Z are contiguous).

The input array uses the ordering corresponding to input_axes (ordering present in an input file).

The array count provides the size of a block in input, listing axes in the order of values of AxisType (T,X,Y,Z).

Definition at line 398 of file io_helpers.cc.

References count, pism::k, n, pism::X_AXIS, pism::Y_AXIS, and pism::Z_AXIS.