lib/field/derivative.cc
/**
 ********************************************************************************************************************************************
 * \brief   Function to compute the first derivative of the field with respect to x
 *
 *          This function must be called using an output array whose shape and size
 *          should be same as that of the field.
 *          It uses blitz stencils to calculate derivatives using central differencing.
 *          
 * \param   outArray is the blitz array into which result will be written.
 ********************************************************************************************************************************************
 */
\brief   Function to compute the first derivative of the field with respect to x
This function must be called using an output array whose shape and size
should be same as that of the field.
It uses blitz stencils to calculate derivatives using central differencing.

\param   outArray is the blitz array into which result will be written.
\ brief Function to compute the first derivative of the field with respect to x This function must be called using an output array whose shape and size should be same as that of the field . It uses blitz stencils to calculate derivatives using central differencing . \ param outArray is the blitz array into which result will be written .
void derivative::calcDerivative1_x(blitz::Array<real, 3> outArray) {
    outArray(xRange, fullRange, fullRange) = central12n(F.F, 0);
    outArray *= ihx;
    outArray = x_Metric(i)*outArray(i, j, k);
}
void derivative :: calcDerivative1_x ( blitz :: Array < real , 3 > outArray ) { outArray ( xRange , fullRange , fullRange ) = central12n ( F . F , 0 ) ; outArray *= ihx ; outArray = x_Metric ( i ) * outArray ( i , j , k ) ; }
\brief   Function to compute the first derivative of the field with respect to x
          This function must be called using an output array whose shape and size
          should be same as that of the field.
\ brief Function to compute the first derivative of the field with respect to x This function must be called using an output array whose shape and size should be same as that of the field .