Skip to content

Commit

Permalink
Correct build-namelist unit tests for removal of ne120 and conus_30_x…
Browse files Browse the repository at this point in the history
…8 tests, fix list of resolutions, build-namelist tests now runs correctly
  • Loading branch information
ekluzek committed May 22, 2019
1 parent bf74f76 commit ccc12ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bld/namelist_files/namelist_definition_clm4_5.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1781,7 +1781,7 @@ CLM run type.
<entry id="res" type="char*30" category="default_settings"
group="default_settings"
valid_values=
"conus_30_x8,512x1024,360x720cru,128x256,64x128,48x96,,94x192,0.23x0.31,0.47x0.63,0.9x1.25,1.9x2.5,2.5x3.33,4x5,10x15,5x5_amazon,1x1_camdenNJ,1x1_vancouverCAN,1x1_mexicocityMEX,1x1_asphaltjungleNJ,1x1_brazil,1x1_urbanc_alpha,1x1_numaIA,1x1_smallvilleIA,0.1x0.1,0.25x0.25,0.5x0.5,3x3min,5x5min,10x10min,0.33x0.33,0.125x0.125,ne4np4,ne16np4,ne30np4,ne60np4,ne120np4,ne240np4,1km-merge-10min">
"conus_30_x8,512x1024,360x720cru,128x256,64x128,48x96,94x192,0.23x0.31,0.47x0.63,0.9x1.25,1.9x2.5,2.5x3.33,4x5,10x15,5x5_amazon,1x1_camdenNJ,1x1_vancouverCAN,1x1_mexicocityMEX,1x1_asphaltjungleNJ,1x1_brazil,1x1_urbanc_alpha,1x1_numaIA,1x1_smallvilleIA,0.1x0.1,0.25x0.25,0.5x0.5,3x3min,5x5min,10x10min,0.33x0.33,0.125x0.125,ne4np4,ne16np4,ne30np4,ne60np4,ne120np4,ne240np4,1km-merge-10min">
Horizontal resolutions
Note: 0.1x0.1, 0.25x0.25, 0.5x0.5, 5x5min, 10x10min, 3x3min, 1km-merge-10min and 0.33x0.33 are only used for CLM tools
</entry>
Expand Down
8 changes: 6 additions & 2 deletions bld/unit_testers/build-namelist_test.pl
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ sub make_env_run {
#
# Figure out number of tests that will run
#
my $ntests = 828;
my $ntests = 820;
if ( defined($opts{'compare'}) ) {
$ntests += 504;
$ntests += 498;
}
plan( tests=>$ntests );

Expand Down Expand Up @@ -1087,6 +1087,10 @@ sub make_env_run {
$res eq "360x720cru" ||
$res eq "512x1024" ) {
next;
# Resolutions not supported on release branch
} elsif ( $res eq "ne120np4" ||
$res eq "conus_30_x8" ) {
next;
}

&make_env_run();
Expand Down

0 comments on commit ccc12ef

Please sign in to comment.