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

First pass at getting fates-sp mode to run without soil BGC #1723

Merged
merged 35 commits into from
May 9, 2022

Conversation

ekluzek
Copy link
Collaborator

@ekluzek ekluzek commented Apr 26, 2022

Description of changes

Get FATES-SP mode to run without soil biogeochemistry

Specific notes

Set it up so that fates-SP mode with run with soil_decomp_method == None. I make some progress towards allowing soil decomposition to be off in general in FATES, but it's still hardcoded to assume this for FATES-SP mode and only allow it there.
Also add a user-mod directory for fates_sp

Contributors other than yourself, if any:

CTSM Issues Fixed (include github issue #):
Fixes: #1720
Fixes: #1726
Fixes: #1729
Fixes: #1610
Initial add of FatesSP compset: #1697
Starts adding a test mod for: #1722
Some part of #1736

Are answers expected to change (and if so in what way)? Yes

Any User Interface Changes (namelist or namelist defaults changes)? No

Testing performed, if any: Ran a couple cases with the testmod in place
SMS_Lm4.f45_f45_mg37.I2000Clm51Fates.cheyenne_intel.clm-fates_sp.20220425_151428_o9pw1i

which PASSes

SMS_D.f45_f45_mg37.I2000Clm51Fates.cheyenne_intel.clm-fates_sp

is currently dying with a subscript overflow error
(it looks like we don't run SatPhen with DEBUG on in the fates test list so this probably exists beforehand)

@ekluzek ekluzek added the enhancement new capability or improved behavior of existing capability label Apr 26, 2022
@ekluzek ekluzek requested review from rgknox and glemieux April 26, 2022 18:41
@ekluzek ekluzek self-assigned this Apr 26, 2022
@ekluzek ekluzek added the next this should get some attention in the next week or two. Normally each Thursday SE meeting. label Apr 26, 2022
@ekluzek ekluzek mentioned this pull request Apr 28, 2022
2 tasks
ekluzek added 4 commits May 4, 2022 11:19
Get FATES and carbon_only test-suite tests to pass with MIMICS active

To pass with MIMICS active, FATES and carbon_only tests need calculations of:
ligninNratioAvg and annsum_npp_col, both currently declared and calculated in CNVegCarbonFluxType.F90.

ligninNratioAvg is a function of leafc_to_litter_patch, frootc_to_litter_patch, soilbiogeochem_cwdc_col, soilbiogeochem_cwdn_col, soilbiogeochem_decomp_cascade_ctransfer_col.

I got both FATES and carbon_only tests to pass by declaring local copies (in MIMICS) of ligninNratioAvg and annsum_npp_col.

 Conflicts:
	src/main/clm_driver.F90
@billsacks billsacks removed the next this should get some attention in the next week or two. Normally each Thursday SE meeting. label May 5, 2022
ekluzek added 2 commits May 5, 2022 17:04
…ake it more clear that it is a soilBGC call, since we don't allow soil_decomp==None for BGC it won't actually matter for any cases we test
subset_data allows zeroing out nonveg landunits without any dompft selected
@ekluzek
Copy link
Collaborator Author

ekluzek commented May 7, 2022

I have this working, but I am showing that one of the externals updates is changing answers to roundoff for some fields for some tests.

Such as : SMS_Ld12_Mmpi-serial.1x1_vancouverCAN.I1PtClm50SpRs.cheyenne_gnu.clm-output_sp_highfreq

RMS lndImp_Fall_evap 1.0164E-20 NORMALIZED 1.5494E-15
RMS lndImp_Fall_lat 2.4869E-14 NORMALIZED 1.5158E-15
RMS lndImp_Fall_lwup 1.0232E-12 NORMALIZED 1.9783E-15
RMS lndImp_Fall_sen 1.1937E-12 NORMALIZED 5.0306E-15
RMS lndImp_Fall_taux 6.3838E-16 NORMALIZED 8.7531E-15
RMS lndImp_Fall_tauy 6.3838E-16 NORMALIZED 8.7531E-15
RMS lndImp_Sl_fv 1.8319E-15 NORMALIZED 5.1606E-15
RMS lndImp_Sl_qref 1.7347E-18 NORMALIZED 2.0140E-16
RMS lndImp_Sl_ram1 1.8829E-13 NORMALIZED 8.5157E-15
RMS lndImp_Sl_t 1.1369E-13 NORMALIZED 3.6787E-16
RMS lndImp_Sl_tref 5.6843E-14 NORMALIZED 1.9072E-16
RMS lndImp_Sl_u10 5.3291E-15 NORMALIZED 2.3045E-15

This is likely OK, but I'd like to understand what change causes this.

@ekluzek ekluzek merged commit 81f84af into ESCOMP:master May 9, 2022
@ekluzek ekluzek deleted the fates_sp_w_no_soil_decomp branch May 9, 2022 11:13
@ekluzek
Copy link
Collaborator Author

ekluzek commented May 9, 2022

The roundoff difference for some reason did NOT hold out for final testing except with this test on izumi:

SMS_D_Ld1_Mmpi-serial.f45_f45_mg37.I2000Clm50SpRs.izumi_gnu.clm-ptsROA

I don't know if that means there's a reproducibility issue, or just an issue with some of my cases. I redid cases with differences many times, with the difference still showing. But, I also wasn't able to track down which externals were causing the issue. So this is all still disconcerting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement new capability or improved behavior of existing capability
Projects
Archived in project
3 participants