lib/io/reader.cc
void reader::copyData(field &outField) {
#ifdef PLANAR
    for (int i=0; i < fieldData.shape()[0]; i++) {
        for (int k=0; k < fieldData.shape()[1]; k++) {
            outField.F(i, 0, k) = fieldData(i, k);
        }
    }
#else
    for (int i=0; i < fieldData.shape()[0]; i++) {
        for (int j=0; j < fieldData.shape()[1]; j++) {
            for (int k=0; k < fieldData.shape()[2]; k++) {
                outField.F(i, j, k) = fieldData(i, j, k);
            }
        }
    }
#endif
}
/**
 ********************************************************************************************************************************************
 * \brief   Function to copy data from blitz array without pads into solver variables
 *
 *          In order to simplify the file views while reading from disk to memory,
 *          the variables are copied into a local blitz array without the pads.
 *          These variables are then written into the solver variables supplied to the reader class.
 *
 ********************************************************************************************************************************************
 */
\brief   Function to copy data from blitz array without pads into solver variables
In order to simplify the file views while reading from disk to memory,
the variables are copied into a local blitz array without the pads.
These variables are then written into the solver variables supplied to the reader class.
\ brief Function to copy data from blitz array without pads into solver variables In order to simplify the file views while reading from disk to memory the variables are copied into a local blitz array without the pads . These variables are then written into the solver variables supplied to the reader class .
void reader::copyData(field &outField) {
#ifdef PLANAR
    for (int i=0; i < fieldData.shape()[0]; i++) {
        for (int k=0; k < fieldData.shape()[1]; k++) {
            outField.F(i, 0, k) = fieldData(i, k);
        }
    }
#else
    for (int i=0; i < fieldData.shape()[0]; i++) {
        for (int j=0; j < fieldData.shape()[1]; j++) {
            for (int k=0; k < fieldData.shape()[2]; k++) {
                outField.F(i, j, k) = fieldData(i, j, k);
            }
        }
    }
#endif
}
void reader :: copyData ( field & outField ) { #ifdef PLANAR for ( int i = 0 ; i < fieldData . shape ( ) [ 0 ] ; i ++ ) { for ( int k = 0 ; k < fieldData . shape ( ) [ 1 ] ; k ++ ) { outField . F ( i , 0 , k ) = fieldData ( i , k ) ; } } #else for ( int i = 0 ; i < fieldData . shape ( ) [ 0 ] ; i ++ ) { for ( int j = 0 ; j < fieldData . shape ( ) [ 1 ] ; j ++ ) { for ( int k = 0 ; k < fieldData . shape ( ) [ 2 ] ; k ++ ) { outField . F ( i , j , k ) = fieldData ( i , j , k ) ; } } } #endif }
\brief   Function to copy data from blitz array without pads into solver variables
          In order to simplify the file views while reading from disk to memory,
          the variables are copied into a local blitz array without the pads.
\ brief Function to copy data from blitz array without pads into solver variables In order to simplify the file views while reading from disk to memory the variables are copied into a local blitz array without the pads .