Skip to content

Commit

Permalink
Don't allow users to supply finidat for cold-start non-FATES runs.
Browse files Browse the repository at this point in the history
Previously, this only produced a warning, which could be overridden.
  • Loading branch information
samsrabin committed Nov 8, 2024
1 parent 60efa91 commit aa79626
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions bld/CLMBuildNamelist.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2589,11 +2589,8 @@ sub setup_logic_initial_conditions {
$nl_flags->{'excess_ice_on_finidat'} = "unknown";
if ( $nl_flags->{'clm_start_type'} =~ /cold/ ) {
if (defined $finidat && !&value_is_true(($nl->get_value('use_fates')))) {
$log->warning("setting $var (either explicitly in your user_nl_clm or by doing a hybrid or branch RUN_TYPE)\n is incomptable with using a cold start" .
$log->fatal_error("setting $var (either explicitly in your user_nl_clm or by doing a hybrid or branch RUN_TYPE)\n is incompatible with using a cold start" .
" (by setting CLM_FORCE_COLDSTART=on)." );
$log->warning("Overridding input $var file with one specifying that this is a cold start from arbitrary initial conditions." );
my $group = $definition->get_group_name($var);
$nl->set_variable_value($group, $var, "' '" );
}
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl,
$var, 'val'=>"' '", 'no_abspath'=>1);
Expand Down

0 comments on commit aa79626

Please sign in to comment.