def advance_euler(gridc, gridx, gridy, scalars, grid_var_list, predcorr):
    "\n    Subroutine for the fractional step euler explicit time advancement of Navier Stokes equations\n \n    Arguments\n    ---------\n    gridc : object\n          Grid object for cell centered variables\n\n    gridx : object\n          Grid object for x-face variables\n\n    gridy : object\n          Grid object for y-face variables\n\n    scalars: object\n           Scalars object to access time-step and Reynold number\n\n    grid_var_list : list\n           List containing variable names for velocity, RHS term from the previous time-step, divergence and pressure\n\n    predcorr : string\n           Flag for the fractional step method equations - 'predictor', 'divergence', 'corrector'\n\n    "
    velc = grid_var_list[0]
    hvar = grid_var_list[1]
    divv = grid_var_list[2]
    pres = grid_var_list[3]
    if (predcorr == 'predictor'):
        predictor(gridx, gridy, velc, hvar, scalars.variable['Re'], scalars.variable['dt'])
    if (predcorr == 'divergence'):
        divergence(gridc, gridx, gridy, velc, divv, ifac=scalars.variable['dt'])
    elif (predcorr == 'corrector'):
        corrector(gridc, gridx, gridy, velc, pres, scalars.variable['dt'])
        divergence(gridc, gridx, gridy, velc, divv)
        scalars.stats.update(stats(gridc, gridx, gridy, velc, pres, divv))
Subroutine for the fractional step euler explicit time advancement of Navier Stokes equations

Arguments
---------
gridc : object
      Grid object for cell centered variables

gridx : object
      Grid object for x-face variables

gridy : object
      Grid object for y-face variables

scalars: object
       Scalars object to access time-step and Reynold number

grid_var_list : list
       List containing variable names for velocity, RHS term from the previous time-step, divergence and pressure

predcorr : string
       Flag for the fractional step method equations - 'predictor', 'divergence', 'corrector'
def advance_euler(gridc, gridx, gridy, scalars, grid_var_list, predcorr):
    "\n    Subroutine for the fractional step euler explicit time advancement of Navier Stokes equations\n \n    Arguments\n    ---------\n    gridc : object\n          Grid object for cell centered variables\n\n    gridx : object\n          Grid object for x-face variables\n\n    gridy : object\n          Grid object for y-face variables\n\n    scalars: object\n           Scalars object to access time-step and Reynold number\n\n    grid_var_list : list\n           List containing variable names for velocity, RHS term from the previous time-step, divergence and pressure\n\n    predcorr : string\n           Flag for the fractional step method equations - 'predictor', 'divergence', 'corrector'\n\n    "
    velc = grid_var_list[0]
    hvar = grid_var_list[1]
    divv = grid_var_list[2]
    pres = grid_var_list[3]
    if (predcorr == 'predictor'):
        predictor(gridx, gridy, velc, hvar, scalars.variable['Re'], scalars.variable['dt'])
    if (predcorr == 'divergence'):
        divergence(gridc, gridx, gridy, velc, divv, ifac=scalars.variable['dt'])
    elif (predcorr == 'corrector'):
        corrector(gridc, gridx, gridy, velc, pres, scalars.variable['dt'])
        divergence(gridc, gridx, gridy, velc, divv)
        scalars.stats.update(stats(gridc, gridx, gridy, velc, pres, divv))