Skip to content

Commit

Permalink
Merge branch 'jonbob/cice/fix_ic_mode_usage' (PR #1297)
Browse files Browse the repository at this point in the history
Add lost code to set variable based on ic_mode, for ICG compsets

This PR will add back some coding to set the mpas-cice
config_initial_condition_type based on the IC_MODE in build-namelist. This is
required for ICG compsets and was somehow lost.

[BFB]
  • Loading branch information
jonbob committed Mar 2, 2017
2 parents cc7c7b3 + 7ebad35 commit 00a3872
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/mpas-cice/bld/build-namelist
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,11 @@ add_default($nl, 'config_nSnowLayers');
# Namelist group: initialize #
##############################

add_default($nl, 'config_initial_condition_type');
if ($ic_mode eq 'spunup') {
add_default($nl, 'config_initial_condition_type', 'val'=>"restart");
} else {
add_default($nl, 'config_initial_condition_type');
}
add_default($nl, 'config_initial_ice_area');
add_default($nl, 'config_initial_ice_volume');
add_default($nl, 'config_initial_snow_volume');
Expand Down

0 comments on commit 00a3872

Please sign in to comment.