Skip to content

Commit

Permalink
Merge pull request #39 from CESM-Development/billsacks/cism_test_coup…
Browse files Browse the repository at this point in the history
…ling

Point is to maintain defaultio as just being io-related - not having
extra stuff that changes behavior like this.

This changes answers (with failures for both BASELINE and NLCOMP) for
all tests that use the allactive-defaultio testmod. Answers change in
the cpl and cism history files (because now tests using this testmod are
only sending fields from cpl -> glc on the year boundary).

There will also be baseline failures for tests using the new
allactive-cism-test_coupling testmod because these tests have changed
their name from before - though their behavior is the same as the old
version with allactive-defaultio. (For example, the new
SMS_Ld5.f19_g17.B1850G.cheyenne_intel.allactive-cism-test_coupling is
identical to the old
SMS_Ld5.f19_g17.B1850G.cheyenne_intel.allactive-defaultio.)

Testing:

Confirmed that the following pass:

    ERS_D.f09_g17.B1850.cheyenne_intel.allactive-defaultio
    SMS_Ld5.f09_g17_gl4.J1850G.cheyenne_gnu.allactive-cism-test_coupling
    SMS_Ld5.f19_g17.B1850G.cheyenne_intel.allactive-cism-test_coupling

and that the latter two are identical to the old tests with the
allactive-defaultio testmod. (The first ERS test changes answers, as
expected.)
  • Loading branch information
fischer-ncar authored Oct 24, 2017
2 parents 95917e5 + 82cc34a commit 8b603aa
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 18 deletions.
12 changes: 6 additions & 6 deletions testlist_allactive.xml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
<option name="wallclock"> 00:30 </option>
</options>
</test>
<test name="NCK_Ld5" grid="f19_g17" compset="B1850GWs" testmods="allactive/defaultio">
<test name="NCK_Ld5" grid="f19_g17" compset="B1850GWs" testmods="allactive/cism/test_coupling">
<machines>
<machine name="cheyenne" compiler="intel" category="prealpha"/>
<machine name="cheyenne" compiler="intel" category="prebeta"/>
Expand Down Expand Up @@ -292,23 +292,23 @@
<option name="wallclock"> 00:30 </option>
</options>
</test>
<test name="SMS_Ld5" grid="f19_g17" compset="B1850G" testmods="allactive/defaultio">
<test name="SMS_Ld5" grid="f19_g17" compset="B1850G" testmods="allactive/cism/test_coupling">
<machines>
<machine name="cheyenne" compiler="intel" category="prealpha"/>
</machines>
<options>
<option name="wallclock"> 00:30 </option>
</options>
</test>
<test name="SMS_Ld5" grid="f09_g17" compset="B1850G" testmods="allactive/defaultio">
<test name="SMS_Ld5" grid="f09_g17" compset="B1850G" testmods="allactive/cism/test_coupling">
<machines>
<machine name="cheyenne" compiler="intel" category="prebeta"/>
</machines>
<options>
<option name="wallclock"> 00:30 </option>
</options>
</test>
<test name="SMS_Ld5" grid="f19_g17" compset="B1850G1" testmods="allactive/defaultio">
<test name="SMS_Ld5" grid="f19_g17" compset="B1850G1" testmods="allactive/cism/test_coupling">
<machines>
<machine name="cheyenne" compiler="gnu" category="prebeta">
<options>
Expand All @@ -318,7 +318,7 @@
</machine>
</machines>
</test>
<test name="SMS_Ld1" grid="f19_g17" compset="B1850G" testmods="allactive/defaultio">
<test name="SMS_Ld1" grid="f19_g17" compset="B1850G" testmods="allactive/cism/test_coupling">
<machines>
<machine name="hobart" compiler="nag" category="prebeta"/>
</machines>
Expand All @@ -334,7 +334,7 @@
<!-- <option name="wallclock"> 00:30 </option> -->
<!-- </options> -->
<!-- </test> -->
<test name="SMS_Ld5" grid="f09_g17_gl4" compset="J1850G" testmods="allactive/defaultio">
<test name="SMS_Ld5" grid="f09_g17_gl4" compset="J1850G" testmods="allactive/cism/test_coupling">
<machines>
<machine name="cheyenne" compiler="gnu" category="prebeta"/>
</machines>
Expand Down
2 changes: 2 additions & 0 deletions testmods_dirs/allactive/cism/test_coupling/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
The purpose of this testmod directory is to enable CISM's dynamics on
the short (multi-day) time scales typical of fully-active tests.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
../../defaultio
4 changes: 4 additions & 0 deletions testmods_dirs/allactive/cism/test_coupling/user_nl_cism
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

! This option changes the ice sheet dynamics time step to 1 day rather than 1 year
! Thus, the ice sheet dynamics can be exercised in a few-day run
test_coupling = .true.
12 changes: 12 additions & 0 deletions testmods_dirs/allactive/cism/test_coupling/user_nl_clm
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

! This is needed to tell CLM to allow the non-annual-boundary glacier changes that arise
! with this testmod.
for_testing_allow_non_annual_changes = .true.

! When we have daily rather than annual glacier dynamics (as we do in this testmod, due
! to having test_coupling in user_nl_cism), CLM applies the dynbal adjustments in a
! single time step rather than spreading them throughout the year. This can cause
! sensible heat fluxes of thousands of W m-2, which causes CAM's PBL scheme to blow up.
! So force these fluxes to zero for this testmod; this breaks water and energy
! conservation in CLM, but should allow the test to pass.
for_testing_zero_dynbal_fluxes = .true.
3 changes: 0 additions & 3 deletions testmods_dirs/allactive/defaultio/user_nl_cism
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
! This option changes the ice sheet dynamics time step to 1 day rather than 1 year
! Thus, the ice sheet dynamics can be exercised in a few-day run
test_coupling = .true.

! This is needed to give CISM history output in the (typically short)
! tests that are done with this testmod directory
Expand Down
9 changes: 0 additions & 9 deletions testmods_dirs/allactive/defaultio/user_nl_clm
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,3 @@
hist_ndens = 1
hist_nhtfrq =-24
hist_mfilt = 1
for_testing_allow_non_annual_changes = .true.

! When we have daily rather than annual glacier dynamics (as we do in this testmod, due
! to having test_coupling in user_nl_cism), CLM applies the dynbal adjustments in a
! single time step rather than spreading them throughout the year. This can cause
! sensible heat fluxes of thousands of W m-2, which causes CAM's PBL scheme to blow up.
! So force these fluxes to zero for this testmod; this breaks water and energy
! conservation in CLM, but should allow the test to pass.
for_testing_zero_dynbal_fluxes = .true.

0 comments on commit 8b603aa

Please sign in to comment.