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

Fix the call to SatellitePhenology when fates is active #5345

Merged
merged 2 commits into from
Dec 15, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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