Skip to content

Commit

Permalink
Avoid calling add_default when no generic values present for gw_conve…
Browse files Browse the repository at this point in the history
…ct_hcf and hdepth_scaling_factor
  • Loading branch information
wlin7 committed Nov 1, 2023
1 parent ae2d6d4 commit 8af0c4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/eam/bld/build-namelist
Original file line number Diff line number Diff line change
Expand Up @@ -828,8 +828,8 @@ add_default($nl,'ieflx_opt');
# Add other variables that are previously set in use_case but not previously set
add_default($nl,'use_hetfrz_classnuc');
add_default($nl,'hist_hetfrz_classnuc');
add_default($nl,'gw_convect_hcf');
add_default($nl,'hdepth_scaling_factor');
add_default($nl,'gw_convect_hcf') if (get_default_value('gw_convect_hcf'));
add_default($nl,'hdepth_scaling_factor') if (get_default_value('hdepth_scaling_factor'));
add_default($nl,'linoz_psc_T');
if ($cfg->get('microphys') =~ /^mg2/) {
add_default($nl,'micro_mg_dcs_tdep');
Expand Down

0 comments on commit 8af0c4f

Please sign in to comment.