Skip to content

HAS KNOWN FIX: FAIL LII2* COMPARE_base_no_interp due to fields VEGWP[LN,PD] #3617

Open

Description

@slevis-lmwg

ncview helps show the diffs in VEGWPLN (diffs in VEGWPPD are more subtle) with file1 (use_init_interp = .true.) on the left and file 2 on the right (no_interp):

file 1=
 /glade/derecho/scratch/slevis/LII2FINIDATAREAS_D_P256x2_Ld1.f09_t232.I1850Clm60 BgcCrop.derecho_intel.clm-default.C.20251118_162221_1yxdza/run/LII2FINIDATAREAS
 _D_P256x2_Ld1.f09_t232.I1850Clm60BgcCrop.derecho_intel.clm-default.C.20251118_1
 62221_1yxdza.clm2.h0a.0001-01-02-00000.nc.base
 file 2= 
 /glade/derecho/scratch/slevis/LII2FINIDATAREAS_D_P256x2_Ld1.f09_t232.I1850Clm60 BgcCrop.derecho_intel.clm-default.C.20251118_162221_1yxdza/run/LII2FINIDATAREAS
 _D_P256x2_Ld1.f09_t232.I1850Clm60BgcCrop.derecho_intel.clm-default.C.20251118_1
 62221_1yxdza.clm2.h0a.0001-01-02-00000.nc.no_interp
Image

Originally posted by @slevis-lmwg in #3252

HISTORY

WHAT ELSE WE KNOW

  • In discussing this with @olyson and @wwieder, Keith and I decided I should remove the two fields from restart. This enabled the LII2 tests to pass as explained in FAIL LII2FINIDATAREAS_D_P256x2_Ld1.f09_g17.I1850Clm50BgcCrop.derecho_intel.clm-default COMPARE_base_no_interp #3252 (comment).
  • However, now restart tests fail (e.g. ERS) suggesting that the two fields do need to be in restart for some reason.
  • A lead (or a red herring?): Keith found that local-noon (LN) radiation fields do not go to restart, but they also get reset to spval differently than VEGWPLN.
  • In another conversation about this, @ekluzek wondered whether the VEGWP[LN,PD] and the local-noon radiation fields should both be in restart, so as to restart correctly in sub-daily restarts.
  • A detail that may implicate me in the source of the problem: I brought the h0a/h0i split to master in ctsm5.3.062, which may have broken these two fields while the LII2 tests were already labeled as expected failures.
  • Keith tells me that the VEGWP[LN,PD] code was introduced by @djk2120, so I'm pinging Daniel here to keep you in the loop.

CURRENT PATH FORWARD
I got consensus from @olyson @ekluzek @wwieder to proceed with

  • putting the VEGWP[LN,PD] fields back on restart
  • removing from history and
  • opening this issue

so as to proceed with ctsm5.4 work and resolve this at a later time.

FIX posted below.

Activity

  1. self-assigned this
    on Nov 20, 2025
  2. added theissue type on Nov 20, 2025
  3. ekluzek commented on Nov 21, 2025

    @ekluzek
    Contributor

    I can explain the cutting off at the top.

    I was rethinking the bit about needing these type of fields on restart. Since, they are only set when near_local_noon or predawn and then set to spval you could reproduce it on restart with doing the same check. But, you also shouldn't need to as it should be valid after the first time-step is run.

    However, the bit about this only being done when daytime matters -- because that means it won't get set to the previous value at restart -- as you won't get to the code where it's set. So it'll keep the spval that was set for it with the hist_addfld call. So the data where it was night at restart will retain the spval and be blanked out as we see in the map.

    The underlying problem is that the logic in Photosynthesis is complicated enough and often only done during the day, so that even if you have a

       if ( <something> ) then
          <do this>
      else
          <do thiat>
      end if

    Neither branch may get executed, when it's easy to think that the above would cover everything. There are places in Photosynthesis where some variables are explicitly set to zero for nighttime, and this code should have something similar for it. I assume that it should be spval for nighttime? @djk2120 what do you think these should be set to during nighttime?

  4. ekluzek commented on Dec 11, 2025

    @ekluzek
    Contributor

    @djk2120 confirmed with me that we should change this so that they are set to spval for nighttime. Doing this should resolve the restart issue even when these fields are output.

  5. changed the title [-]FAIL LII2* COMPARE_base_no_interp due to fields VEGWP[LN,PD] starting some time after ctsm5.3.059[/-] [+]FAIL LII2* COMPARE_base_no_interp due to fields VEGWP[LN,PD] with known fix[/+] on Feb 13, 2026
  6. changed the title [-]FAIL LII2* COMPARE_base_no_interp due to fields VEGWP[LN,PD] with known fix[/-] [+]HAS KNOWN FIX: FAIL LII2* COMPARE_base_no_interp due to fields VEGWP[LN,PD][/+] on Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

scienceEnhancement to or bug impacting science

Type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions