Skip to content

Commit

Permalink
Add fates cross-grid seed dispersal mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
YanlanLiu authored and glemieux committed Jul 24, 2023
1 parent c648dc2 commit 845ddfe
Show file tree
Hide file tree
Showing 4 changed files with 204 additions and 23 deletions.
2 changes: 1 addition & 1 deletion components/elm/src/data_types/GridcellType.F90
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ subroutine grc_pp_init(this, begg, endg)
allocate(this%MaxElevation (begg:endg)) ; this%MaxElevation (:) = nan

allocate(this%landunit_indices(1:max_lunit, begg:endg)); this%landunit_indices(:,:) = ispval

! allocate(this%topounit_indices (begg:endg,1:max_topounits)) ; this%topounit_indices (:,:) = ispval

end subroutine grc_pp_init
Expand Down
3 changes: 3 additions & 0 deletions components/elm/src/main/elm_driver.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1368,6 +1368,9 @@ subroutine elm_drv(doalb, nextsw_cday, declinp1, declin, rstwr, nlend, rdate)
end do
!$OMP END PARALLEL DO

! Pass fates seed dispersal information to all nodes
if (use_fates .and. is_beg_curr_day()) call alm_fates%WrapSeedGlobal()

! ============================================================================
! Determine gridcell averaged properties to send to atm
! ============================================================================
Expand Down
2 changes: 1 addition & 1 deletion components/elm/src/main/elm_initializeMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ subroutine initialize1( )
use dynSubgridControlMod , only: dynSubgridControl_init
use filterMod , only: allocFilters
use reweightMod , only: reweight_wrapup
use topounit_varcon , only: max_topounits, has_topounit, topounit_varcon_init
use topounit_varcon , only: max_topounits, has_topounit, topounit_varcon_init
use elm_varctl , only: use_top_solar_rad
!
! !LOCAL VARIABLES:
Expand Down
Loading

0 comments on commit 845ddfe

Please sign in to comment.