lib/field/field.cc
/**
 ********************************************************************************************************************************************
 * \brief   Function to shift a blitz RectDomain object by a given number of steps along a specified dimension.
 *
 *          The RectDomain objects offer a view of the blitz arrays on which the shift function operates.
 *          These objects are shifted along the dimension specified in the argument, by <B>dim</B>, through a number of steps,
 *          to offer offset views.
 *
 * \param   dim is the integer input to specify the dimension (direction) of the shift. (x -> 0, y -> 1, z -> 2)
 * \param   core is the input RectDomain object which is to be shifted to get the new view
 * \param   steps is the integer value by which the input view must be offset along the dimension specified by <B>dim</B>
 *
 * \return  A RectDomain object that specifies the new offset view of the data
 ********************************************************************************************************************************************
 */
\brief   Function to shift a blitz RectDomain object by a given number of steps along a specified dimension.
The RectDomain objects offer a view of the blitz arrays on which the shift function operates.
These objects are shifted along the dimension specified in the argument, by dim, through a number of steps,
to offer offset views.

\param   dim is the integer input to specify the dimension (direction) of the shift. (x -> 0, y -> 1, z -> 2)
\param   core is the input RectDomain object which is to be shifted to get the new view
\param   steps is the integer value by which the input view must be offset along the dimension specified by dim

\return  A RectDomain object that specifies the new offset view of the data
\ brief Function to shift a blitz RectDomain object by a given number of steps along a specified dimension . The RectDomain objects offer a view of the blitz arrays on which the shift function operates . These objects are shifted along the dimension specified in the argument by dim through a number of steps to offer offset views . \ param dim is the integer input to specify the dimension ( direction ) of the shift . ( x - > 0 y - > 1 z - > 2 ) \ param core is the input RectDomain object which is to be shifted to get the new view \ param steps is the integer value by which the input view must be offset along the dimension specified by dim \ return A RectDomain object that specifies the new offset view of the data
blitz::RectDomain<3> field::shift(int dim, const blitz::RectDomain<3> core, int steps) {
    blitz::RectDomain<3> rDom = core;
    rDom.lbound()(dim) += steps;
    rDom.ubound()(dim) += steps;
    return rDom;
}
blitz :: RectDomain < 3 > field :: shift ( int dim , const blitz :: RectDomain < 3 > core , int steps ) { blitz :: RectDomain < 3 > rDom = core ; rDom . lbound ( ) ( dim ) += steps ; rDom . ubound ( ) ( dim ) += steps ; return rDom ; }
\brief   Function to shift a blitz RectDomain object by a given number of steps along a specified dimension.
\ brief Function to shift a blitz RectDomain object by a given number of steps along a specified dimension .