Skip to content

Commit

Permalink
add error when user sets streams to false and exice to true on coldstart
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdebolskiy committed Jul 30, 2024
1 parent 7208b66 commit a8ff15a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bld/CLMBuildNamelist.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4595,6 +4595,11 @@ sub setup_logic_exice {
} elsif ( (not defined($use_exice_streams)) && (not value_is_true($use_exice)) ) {
$nl->set_variable_value('exice_streams', 'use_excess_ice_streams' , '.false.');
$use_exice_streams = '.false.';
# Checking for cold clm_start_type and not finidat here since finidat can be not set set in branch/hybrid runs and
# These cases are handled in the restart routines in the model
} elsif ( defined($use_exice_streams) && (not value_is_true($use_exice_streams)) && value_is_true($use_exice) &&
( $nl_flags->{'clm_start_type'} eq "'cold'" || $nl_flags->{'clm_start_type'} eq "'arb_ic'" )) {
$log->fatal_error("use_excess_ice_streams can NOT be FALSE when use_excess_ice is TRUE on the cold start" );
}
# If excess ice streams is on
if (defined($use_exice_streams) && value_is_true($use_exice_streams)) {
Expand Down

0 comments on commit a8ff15a

Please sign in to comment.