at the moment, the default time stepping function is designed with the non-hydrostatic model in mind, so the logical steps of a time step (or substep for RK3) are
I would like to calculate the free surface in the calculate_pressure_correction! function to unify conceptually the NonhydrostaticModel and the HydrostaticFreeSurfaceModel, minimize the amount of code, and reduce the necessity for extending the time-stepping function.
This will make it easier to implement new time-stepping schemes that work for both the models
at the moment, the default time stepping function is designed with the non-hydrostatic model in mind, so the logical steps of a time step (or substep for RK3) are
In the hydrostatic model, we are extending the
step_variables!
function to include astep_free_surface!
function that calculatesη
and we setI would like to calculate the free surface in the
calculate_pressure_correction!
function to unify conceptually theNonhydrostaticModel
and theHydrostaticFreeSurfaceModel
, minimize the amount of code, and reduce the necessity for extending the time-stepping function. This will make it easier to implement new time-stepping schemes that work for both the models