Arrays

In FORTRAN and in the parameter section of the C3D file, arrays are stored in column order, i.e. the array

C11    C12    C13

C21    C22    C23

is stored serially in the order C11, C21, C12, C22, C13, and C23. In FORTRAN and C3D parameter notation these elements are written as C(1,1), C(2,1), C(1,2), C(22), C(1,3), C(2,3), and the array is dimensioned as C(2,3).

In programming environments derived from C and C++, an array storing the elements in the same serial order is defined as c[3] [2], with the 2nd subscript varying most rapidly.