Draft: Porting from C to Cpp using Multidimensional Subscript Operator
Open
requested to merge develop_PortingFromCToCpp_MultidimensionalSubscriptOperator into develop_porting_from_c_to_cpp
In ifos3d a 3D field e.g. vx
is represented by the type float ***
.
vx
is an array of size nrow
with elements of type float **
vx[.]
is mapped to an array of size nrow * ncol
with elements of float *
vx[.][.]
is mapped to an array of nrow * ncol * ndep
with elements of float
With C++ multidimensional subscript operators this pointer underflow problem can be avoided and also the memory for the pointer structure can be saved.
Help | Imprint | Privacy policy | Accessibility | Contact