(a)
Give a warning if input array if not Fortran-ordered.

    ESMPy expects Fortran-ordered array. Passing C-ordered array will slow down
    performance due to memory rearrangement.

    Parameters
    ----------
    a : numpy array
Give a warning if input array if not Fortran-ordered.
Give a warning if input array if not Fortran - ordered .
def warn_f_contiguous(a):
    '''
    Give a warning if input array if not Fortran-ordered.

    ESMPy expects Fortran-ordered array. Passing C-ordered array will slow down
    performance due to memory rearrangement.

    Parameters
    ----------
    a : numpy array
    '''
    if not a.flags['F_CONTIGUOUS']:
        warnings.warn("Input array is not F_CONTIGUOUS. "
                      "Will affect performance.")
def warn_f_contiguous ( a ) : if not a . flags [ 'F_CONTIGUOUS' ] : warnings . warn ( "Input array is not F_CONTIGUOUS. " "Will affect performance." )