diff --git a/dynamics/spam/Dycore.h b/dynamics/spam/Dycore.h index 541767ac..acd272b8 100644 --- a/dynamics/spam/Dycore.h +++ b/dynamics/spam/Dycore.h @@ -230,6 +230,16 @@ class Dycore { prevstep = 1; } + void update_dt(pam::PamCoupler &coupler) { + if (params.tstype=="si") { + serial_print("ERROR - update_dt: time step cannot be updated in SI mode", par.masterproc); + exit(-1); + } + params.dt_crm_phys = coupler.get_option("crm_dt"); + params.dtcrm = params.dt_crm_phys / params.crm_per_phys; + + } + // Given the model data and CFL value, compute the maximum stable time step real compute_time_step(PamCoupler const &coupler, real cfl_in = -1) { return 0._fp;