Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented a tentative fix for SSP tests #5965

Merged
merged 2 commits into from
Oct 13, 2023
Merged

Conversation

wlin7
Copy link
Contributor

@wlin7 wlin7 commented Sep 28, 2023

Future scenario forcing files for new species introduced by v3atm are not ready.
The cime SSP tests using default v3 configuration therefore failed to be created.

The tentative fix uses config that mixes v3 physics with v2 chemistry.

Also fixed a couple misuses of eqv operator in linoz-related code that do not
properly consider the precedence relative to AND/OR operators. The misuses have
no impact on default v3 configuration, but would cause fatal runtime error when using
the hybrid configuration as implemented here.

[BFB] for existing tests.

@wlin7
Copy link
Contributor Author

wlin7 commented Sep 28, 2023

Tests completed:

SMS_D_Ln5.ne4_oQU240.F2010.chrysalis_intel.eam-cosplite_nhtfrq5, PASS baseline
SMS_D_Ld1.ne30pg2_EC30to60E2r2.WCYCLSSP370.chrysalis_intel.allactive-wcprodssp run ok, diff from baseline that has long been not blessed
ERP_Ld3.ne30pg2_EC30to60E2r2.WCYCL1850.chrysalis_intel.allactive-pioroot1 PASS baseline in a test merge to master

@@ -47,9 +47,10 @@
<values modifier='additive'>
<value compset="" >-mach $MACH</value>
<value compset="_EAM" >-phys default</value>
<value compset="_EAM%CMIP6_" >&eam_phys_defaults; &eam_chem_defaults;</value>
<value compset="^((?!SSP).)*_EAM%CMIP6_" >&eam_phys_defaults; &eam_chem_defaults;</value>
Copy link
Contributor Author

@wlin7 wlin7 Sep 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to use this negative lookaround to exclude SSP cases from using the config options at this line. Otherwise would not be able to get rid of '-vbs' option for standard config.

@@ -1285,7 +1285,7 @@ subroutine read_next_trcdata(state, flds, file )
cnt3(flds(f)%coords(ZA_TIMDIM)) = 1
strt3(flds(f)%coords(ZA_TIMDIM)) = recnos(i)
!!
if (file%linoz_v3.eqv..true..or.file%linoz_v2.eqv..true.) then
if (file%linoz_v3 .or. file%linoz_v2) then
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the original form, even when linoz_v2 is true, this if-block would not be executed.

Copy link
Member

@ambrad ambrad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The conditionals code changes look good; approving these. Don't know anything about the rest.

@wlin7
Copy link
Contributor Author

wlin7 commented Oct 12, 2023

checking on unexpected diffs for SMS_Ln5.ne30pg2_r05_EC30to60E2r2.BGCEXP_LNDATM_CNPRDCTC_1850 and SMS_Ln5.ne30pg2_r05_EC30to60E2r2.BGCEXP_LNDATM_CNPRDCTC_20TR

wlin7 added a commit that referenced this pull request Oct 12, 2023
Implemented a tentative fix for SSP tests

Future scenario forcing files for new species introduced by v3atm are not ready.
The cime SSP tests using default v3 configuration therefore failed to be created.

The tentative fix uses config that mixes v3 physics with v2 chemistry.

Also fixed a couple misuses of eqv operator in linoz-related code that do not
properly consider the precedence relative to AND/OR operators. The misuses have
no impact on default v3 configuration, but would cause fatal runtime error when using
the hybrid configuration as implemented here.

[BFB] for existing tests.
@wlin7
Copy link
Contributor Author

wlin7 commented Oct 12, 2023

Merged to next. The BGC tests diffs mentioned above are not a concern for this PR. The tests were created without specifying --pesfile config_pes_tests.xml. When specified, the tests are BFB with baselines. Also refer to #5992.

@rljacob rljacob assigned wlin7 and unassigned rljacob Oct 13, 2023
@wlin7 wlin7 merged commit d98c4fc into master Oct 13, 2023
3 checks passed
@wlin7 wlin7 deleted the wlin/atm/ssp_tentativefix branch October 13, 2023 20:44
@wlin7
Copy link
Contributor Author

wlin7 commented Oct 13, 2023

Merged to master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants