Skip to content

Commit

Permalink
trying to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adrifoster committed Sep 12, 2023
1 parent 24dee00 commit 1fb58be
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 @@ -3890,10 +3890,7 @@ sub setup_logic_lai_streams {
if ( &value_is_true($nl_flags->{'use_crop'}) && &value_is_true($nl->get_value('use_lai_streams')) ) {
$log->fatal_error("turning use_lai_streams on is incompatable with use_crop set to true.");
}
if ( ($nl_flags->{'bgc_mode'} eq "sp" || $nl_flags->{'bgc_mode'} eq "fates") ) {
if ( $nl_flags->{'bgc_mode'} eq "fates" && ! &value_is_true($nl->get_value('use_fates_sp')) && &value_is_true($nl->get_value('use_lai_streams'))) {
$log->fatal_error("Must have use_fates_sp turned on to run FATES with LAI streams.");
}
if ( $nl_flags->{'bgc_mode'} eq "sp" || ($nl_flags->{'bgc_mode'} eq "fates" && &value_is_true($nl->get_value('use_fates_sp')) )) {
if ( &value_is_true($nl->get_value('use_lai_streams')) ) {
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, 'use_lai_streams');
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, 'lai_mapalgo',
Expand Down

0 comments on commit 1fb58be

Please sign in to comment.