Skip to content

Commit

Permalink
Merge remote-tracking branch 'glemieux/fates-satphen-call-fix' into n…
Browse files Browse the repository at this point in the history
…ext (PR #5345)

Move the fates-specific `satellitephenology` call out of an area that is unreachable when `fates` is active.

Fixes NGEET/fates#953.

[Non-B4B]
  • Loading branch information
bishtgautam committed Dec 14, 2022
2 parents b4a7f82 + 63810b8 commit 7a67522
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions components/elm/src/main/elm_driver.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1108,21 +1108,20 @@ subroutine elm_drv(doalb, nextsw_cday, declinp1, declin, rstwr, nlend, rdate)
filter(nc)%num_soilp, filter(nc)%soilp, &
cnstate_vars)
end if

if (use_fates_sp) then
call SatellitePhenology(bounds_clump, &
filter_inactive_and_active(nc)%num_soilp, filter_inactive_and_active(nc)%soilp, &
waterstate_vars, canopystate_vars)
endif

else ! not ( if-use_cn or if-use_fates)

if (.not.use_fates_sp .and. doalb) then
if (doalb) then
! Prescribed biogeography - prescribed canopy structure, some prognostic carbon fluxes
call SatellitePhenology(bounds_clump, &
filter(nc)%num_nolakep, filter(nc)%nolakep, &
waterstate_vars, canopystate_vars)
end if

if (use_fates_sp .and. doalb) then
call SatellitePhenology(bounds_clump, &
filter_inactive_and_active(nc)%num_soilp, filter_inactive_and_active(nc)%soilp, &
waterstate_vars, canopystate_vars)
endif

end if ! end of if-use_cn or if-use_fates
end if ! end of is_active_betr_bgc

Expand Down

0 comments on commit 7a67522

Please sign in to comment.