Skip to content

Commit

Permalink
Per #2224, reconfigure unit_gen_ens_prod.xml tests to elimanate the f…
Browse files Browse the repository at this point in the history
…ollowing types of warnings:

WARNING: process_command_line() -> control_id is set in the config file but control file is not provided with -ctrl argument
  • Loading branch information
JohnHalleyGotway committed Nov 2, 2022
1 parent 1f26c55 commit 4405b80
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ ens = {
// Only set if processing a single file with all ensembles
//
ens_member_ids = ["+1", "+2", "+3", "+4", "+5", "+6", "+7", "+8", "+9", "+10", "+11", "+12", "+13", "+14", "+15", "+16", "+17", "+18", "+19", "+20"];
control_id = "hi_res_ctl";
control_id = ${CONTROL_ID};

////////////////////////////////////////////////////////////////////////////////

Expand Down
2 changes: 1 addition & 1 deletion internal/test_unit/config/GenEnsProdConfig_single_file_nc
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ ens = {
// Only set if processing a single file with all ensembles
//
ens_member_ids = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23"];
control_id = "0";
control_id = ${CONTROL_ID};

////////////////////////////////////////////////////////////////////////////////

Expand Down
12 changes: 12 additions & 0 deletions internal/test_unit/xml/unit_gen_ens_prod.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@

<test name="gen_ens_prod_SINGLE_FILE_NC_NO_CTRL">
<exec>&MET_BIN;/gen_ens_prod</exec>
<env>
<pair><name>CONTROL_ID</name> <value>""</value></pair>
</env>
<param> \
-ens &DATA_DIR_MODEL;/CPC_NMME/CFSv2.tmp2m.198201.fcst.nc \
-config &CONFIG_DIR;/GenEnsProdConfig_single_file_nc \
Expand All @@ -91,6 +94,9 @@

<test name="gen_ens_prod_SINGLE_FILE_NC_WITH_CTRL">
<exec>&MET_BIN;/gen_ens_prod</exec>
<env>
<pair><name>CONTROL_ID</name> <value>"0"</value></pair>
</env>
<param> \
-ens &DATA_DIR_MODEL;/CPC_NMME/CFSv2.tmp2m.198201.fcst.nc \
-config &CONFIG_DIR;/GenEnsProdConfig_single_file_nc \
Expand All @@ -105,6 +111,9 @@

<test name="gen_ens_prod_SINGLE_FILE_GRIB_NO_CTRL">
<exec>&MET_BIN;/gen_ens_prod</exec>
<env>
<pair><name>CONTROL_ID</name> <value>""</value></pair>
</env>
<param> \
-ens &DATA_DIR_MODEL;/grib2/gefs/enspost_grb2.t00z.prmsl \
-config &CONFIG_DIR;/GenEnsProdConfig_single_file_grib \
Expand All @@ -118,6 +127,9 @@

<test name="gen_ens_prod_SINGLE_FILE_GRIB_WITH_CTRL">
<exec>&MET_BIN;/gen_ens_prod</exec>
<env>
<pair><name>CONTROL_ID</name> <value>"hi_res_ctl"</value></pair>
</env>
<param> \
-ens &DATA_DIR_MODEL;/grib2/gefs/enspost_grb2.t00z.prmsl \
-config &CONFIG_DIR;/GenEnsProdConfig_single_file_grib \
Expand Down

0 comments on commit 4405b80

Please sign in to comment.