Skip to content

Commit

Permalink
two-stream updates and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rgknox committed Jan 29, 2025
1 parent 9940262 commit 2e9f067
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 21 deletions.
14 changes: 0 additions & 14 deletions cime_config/testdefs/ExpectedTestFails.xml
Original file line number Diff line number Diff line change
Expand Up @@ -308,20 +308,6 @@
</phase>
</test>

<test name="ERS_D_Ld20.f45_f45_mg37.I2000Clm50FatesRs.derecho_intel.clm-FatesColdTwoStream">
<phase name="COMPARE_base_rest">
<status>FAIL</status>
<issue>#2325</issue>
</phase>
</test>

<test name="ERS_D_Ld20.f45_f45_mg37.I2000Clm50FatesRs.derecho_gnu.clm-FatesColdTwoStreamNoCompFixedBioGeo">
<phase name="COMPARE_base_rest">
<status>FAIL</status>
<issue>#2325</issue>
</phase>
</test>

<test name="SMS_Ld10_D_Mmpi-serial.CLM_USRDAT.I1PtClm60Fates.derecho_intel.clm-FatesFireLightningPopDens--clm-NEON-FATES-NIWO">
<phase name="SHAREDLIB_BUILD">
<status>FAIL</status>
Expand Down
13 changes: 6 additions & 7 deletions src/utils/clmfates_interfaceMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2790,23 +2790,22 @@ subroutine wrap_canopy_radiation(this, bounds_clump, nc, &
! the zenith angle is positive. In the future, FATES
! may perform calculations on diffuse radiation during
! dawn and dusk when the sun is below the horizon, but not yet

do ifp = 1,this%fates(nc)%sites(s)%youngest_patch%patchno
p = ifp+col%patchi(c)
this%fates(nc)%bc_in(s)%fcansno_pa(ifp) = fcansno(p)
end do


if(coszen_col(c) > 0._r8) then

this%fates(nc)%bc_in(s)%albgr_dir_rb(:) = albgrd_col(c,:)
this%fates(nc)%bc_in(s)%albgr_dif_rb(:) = albgri_col(c,:)

do ifp = 1,this%fates(nc)%sites(s)%youngest_patch%patchno
p = ifp+col%patchi(c)
this%fates(nc)%bc_in(s)%fcansno_pa(ifp) = fcansno(p)
end do

else

! This will ensure a crash in FATES if it tries
this%fates(nc)%bc_in(s)%albgr_dir_rb(:) = spval
this%fates(nc)%bc_in(s)%albgr_dif_rb(:) = spval
this%fates(nc)%bc_in(s)%fcansno_pa(:) = spval

end if

Expand Down

0 comments on commit 2e9f067

Please sign in to comment.