lib/field/field.cc
real field::fieldMax() {
    real localMax, globalMax;

    localMax = blitz::max(blitz::abs(F));

    /***************************************************************************************************************
     * DID YOU KNOW?                                                                                               *
     * In the line above, most compilers will not complain even if you omitted the namespace specification blitz:: *
     * This behaviour wasted an hour of my development time (including the effort of making this nice box).        *
     * Check Ref. [4] in README for explanation.                                                                   *
     ***************************************************************************************************************/

    MPI_Allreduce(&localMax, &globalMax, 1, MPI_FP_REAL, MPI_MAX, MPI_COMM_WORLD);

    return globalMax;
}
/**
 ********************************************************************************************************************************************
 * \brief   Function to extract the maximum value from the field
 *
 *          The function uses the in-built blitz function to obtain the maximum value in an array.
 *          Note that this function *takes the maximum of the absolute value* of the field.
 *          While performing parallel computation, the function performs an <B>MPI_Allreduce()</B> to get
 *          the global maximum from the entire computational domain.
 *
 * \return  The real value of the maximum is returned (it is implicitly assumed that only real values are used)
 ********************************************************************************************************************************************
 */
\brief   Function to extract the maximum value from the field
The function uses the in-built blitz function to obtain the maximum value in an array.
Note that this function *takes the maximum of the absolute value* of the field.
While performing parallel computation, the function performs an MPI_Allreduce() to get
the global maximum from the entire computational domain.

\return  The real value of the maximum is returned (it is implicitly assumed that only real values are used)
\ brief Function to extract the maximum value from the field The function uses the in - built blitz function to obtain the maximum value in an array . Note that this function * takes the maximum of the absolute value * of the field . While performing parallel computation the function performs an MPI_Allreduce () to get the global maximum from the entire computational domain . \ return The real value of the maximum is returned ( it is implicitly assumed that only real values are used )
real field::fieldMax() {
    real localMax, globalMax;
    localMax = blitz::max(blitz::abs(F));
    MPI_Allreduce(&localMax, &globalMax, 1, MPI_FP_REAL, MPI_MAX, MPI_COMM_WORLD);
    return globalMax;
}
real field :: fieldMax ( ) { real localMax , globalMax ; localMax = blitz :: max ( blitz :: abs ( F ) ) ; MPI_Allreduce ( & localMax , & globalMax , 1 , MPI_FP_REAL , MPI_MAX , MPI_COMM_WORLD ) ; return globalMax ; }
\brief   Function to extract the maximum value from the field
          The function uses the in-built blitz function to obtain the maximum value in an array.
\ brief Function to extract the maximum value from the field The function uses the in - built blitz function to obtain the maximum value in an array .
/***************************************************************************************************************
     * DID YOU KNOW?                                                                                               *
     * In the line above, most compilers will not complain even if you omitted the namespace specification blitz:: *
     * This behaviour wasted an hour of my development time (including the effort of making this nice box).        *
     * Check Ref. [4] in README for explanation.                                                                   *
     ***************************************************************************************************************/