Skip to content

Commit

Permalink
Merge pull request #3 from rgknox/snow_occlusion_ctsm
Browse files Browse the repository at this point in the history
Snow occlusion updates fates
  • Loading branch information
ckoven authored Apr 6, 2021
2 parents e33f6bc + c8b965a commit 810a09f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/utils/clmfates_interfaceMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ module CLMFatesInterfaceMod
use EDBtranMod , only : btran_ed, &
get_active_suction_layers
use EDCanopyStructureMod , only : canopy_summarization, update_hlm_dynamics
use EDCanopyStructureMod , only : UpdateFatesAvgSnowDepth
use FatesPlantRespPhotosynthMod, only : FatesPlantRespPhotosynthDrive
use EDAccumulateFluxesMod , only : AccumulateFluxes_ED
use FatesSoilBGCFluxMod , only : FluxIntoLitterPools
Expand Down Expand Up @@ -990,10 +991,15 @@ subroutine wrap_update_hlmfates_dyn(this, nc, bounds_clump, &
this%fates(nc)%bc_in(s)%frac_sno_eff_si = frac_sno_eff(c)
end do

! Only update the fates internal snow burial if this is not a restart
if(is_called_at_restart==ifalse) then
call UpdateFatesAvgSnowDepth(this%fates(nc)%sites,this%fates(nc)%bc_in)
end if

! Canopy diagnostics for FATES
call canopy_summarization(this%fates(nc)%nsites, &
this%fates(nc)%sites, &
this%fates(nc)%bc_in, is_called_at_restart)
this%fates(nc)%bc_in)

! Canopy diagnostic outputs for HLM
call update_hlm_dynamics(this%fates(nc)%nsites, &
Expand Down

0 comments on commit 810a09f

Please sign in to comment.