Skip to content

Commit

Permalink
Remove support for config_rk_order = 1
Browse files Browse the repository at this point in the history
Remove support for config_rk_order = 1 to avoid unnecessary redundancy
with config_time_integration = forward_euler while maintaining
backward compatibility.
  • Loading branch information
trhille committed Oct 30, 2023
1 parent 769dc33 commit ada4117
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions components/mpas-albany-landice/src/Registry.xml
Original file line number Diff line number Diff line change
Expand Up @@ -489,8 +489,8 @@
possible_values="'forward_euler' or 'runge_kutta'"
/>
<nml_option name="config_rk_order" type="integer" default_value="2" units="unitless"
description="Order of Runge-Kutta time integration to use. A value of 1 is equivalent to forward euler. Values of 2 and 3 indicate strong-stability preserving RK2 and RK3. There is currently no support for classical RK2 or RK4 methods."
possible_values="1, 2, 3"
description="Order of Runge-Kutta time integration to use. A value of 1 would be equivalent to forward euler, but will cause an error to avoid unnecessary redundancy. Values of 2 and 3 indicate strong-stability preserving RK2 and RK3. There is currently no support for classical RK2 or RK4 methods."
possible_values="2 or 3"
/>
<nml_option name="config_rk3_stages" type="integer" default_value="3" units="stages"
description="Number of stages for strong stability preserving RK3 time integration. If set to 3, this involves 3 velocity solves and a maximum CFL fraction of 1. If set to 4, this involves 4 velocity solves, but the maximum CFL fraction is 2."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,7 @@ subroutine li_time_integrator_forwardeuler_rungekutta(domain, err)
! weights are updated for each case below
rkTendWeights(:) = -9999.0_RKIND
rkSubstepWeights(:) = -9999.0_RKIND
if ( (trim(config_time_integration) == 'forward_euler') .or. &
((trim(config_time_integration) == 'runge_kutta') .and. &
(config_rk_order == 1)) ) then
if (trim(config_time_integration) == 'forward_euler') then
nRKstages = 1
rkSSPweights(1) = 1.0_RKIND
rkTendWeights(1) = 1.0_RKIND
Expand Down

0 comments on commit ada4117

Please sign in to comment.