Skip to content

Commit

Permalink
Merge branch 'hollyhan/mali/add_restart_functionality_slm' into MALI-…
Browse files Browse the repository at this point in the history
…Dev/develop

Previously, when the regional sea-level prediction capability was added
to MALI (#21), the restart config option for the sea-level model was not
added. This led the sea-level model to get initialized to Timestep zero
when coupled MALI-SLM simulations are being restarted, forgetting about
the ice loading changes and associated viscoelastic solid earth deformation
that happened in the timesteps prior to current model time. This PR
fixes the problem by allowing the sea-level model to resume where it
was left off. Note in parallel to this PR, the version of the SLM needs
to incorporate the changes made in the following accompanying
PR (MALI-Dev/1DSeaLevelModel_FWTW#9)

* hollyhan/add_restart_functionality_slm:
  Don't call SLM on init of a restart
  Add addl info on restart about the calculated time since last SLM call
  Allow restarts at any interval when using SLM
  Add missing error flag so model actually dies when error occurs
  Add missing arguments to log write statement
  Update restart check to also use time interval division
  Adjust check if adaptive dt is on or not
  Update checks using interval division
  Improve error handling, correct other usage of config_uplift_method
  Improve synchronization of timesteps between MALI and SLM
  Add restart option when the SLM is coupled to MALI
  • Loading branch information
matthewhoffman committed Feb 29, 2024
2 parents 8be18ef + 052b15d commit f79661c
Show file tree
Hide file tree
Showing 3 changed files with 295 additions and 100 deletions.
6 changes: 3 additions & 3 deletions components/mpas-albany-landice/src/Registry.xml
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@
description="Selection of the method for bedrock uplift calculation."
possible_values="'none', 'data', 'sealevelmodel'"
/>
<nml_option name="config_slm_coupling_interval" type="character" default_value="0002-00-00_00:00:00" units="time"
description="Time interval at which the sea-level model is called by MALI. The interval has to be an even multiple of the option 'config_adaptive_timestep_force_interval"
possible_values="Any time interval of the format 'YYYY-MM-DD_HH:MM:SS'"
<nml_option name="config_slm_coupling_interval" type="integer" default_value="2" units="years"
description="Time interval at which the sea-level model is called by MALI. Only integer years are currently supported. The user must set 'dt1' in namelist.sealevel to match this value. Note that the user needs to set config_adaptive_timestep_force_interval to divide evenly into config_slm_coupling_interval. Also, restart file output_interval needs to be a multiple of config_slm_coupling_interval."
possible_values="Any positive integer"
/>
<nml_option name="config_MALI_to_SLM_weights_file" type="character" default_value="mpas_to_grid.nc" units="unitless"
description="File containing the interpolation weights for regridding from MPAS mesh to the Gaussian grid used by the Sea Level Model."
Expand Down
Loading

0 comments on commit f79661c

Please sign in to comment.