lib/io/writer.cc
/**
 ********************************************************************************************************************************************
 * \brief   Function to copy data to a blitz array without pads
 *
 *          In order to simplify the file views while writing to disk from memory for the restart file,
 *          the variables are copied into a local blitz array without the pads.
 *
 ********************************************************************************************************************************************
 */
\brief   Function to copy data to a blitz array without pads
In order to simplify the file views while writing to disk from memory for the restart file,
the variables are copied into a local blitz array without the pads.
\ brief Function to copy data to a blitz array without pads In order to simplify the file views while writing to disk from memory for the restart file the variables are copied into a local blitz array without the pads .
void writer::copyData(field &outField) {
#ifdef PLANAR
    for (int i=0; i < fieldData.shape()[0]; i++) {
        for (int k=0; k < fieldData.shape()[1]; k++) {
            fieldData(i, k) = outField.F(i, 0, 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++) {
                fieldData(i, j, k) = outField.F(i, j, k);
            }
        }
    }
#endif
}
void writer :: copyData ( field & outField ) { #ifdef PLANAR for ( int i = 0 ; i < fieldData . shape ( ) [ 0 ] ; i ++ ) { for ( int k = 0 ; k < fieldData . shape ( ) [ 1 ] ; k ++ ) { fieldData ( i , k ) = outField . F ( i , 0 , 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 ++ ) { fieldData ( i , j , k ) = outField . F ( i , j , k ) ; } } } #endif }
\brief   Function to copy data to a blitz array without pads
          In order to simplify the file views while writing to disk from memory for the restart file,
          the variables are copied into a local blitz array without the pads.
\ brief Function to copy data to a blitz array without pads In order to simplify the file views while writing to disk from memory for the restart file the variables are copied into a local blitz array without the pads .