@@ -29,7 +29,7 @@ module ELMFatesInterfaceMod
2929
3030 ! use ed_driver_interface, only:
3131
32- ! Used CLM Modules
32+ ! Used HLM Modules
3333 use VegetationType , only : veg_pp
3434 use shr_kind_mod , only : r8 = > shr_kind_r8
3535 use decompMod , only : bounds_type
@@ -38,6 +38,8 @@ module ELMFatesInterfaceMod
3838 use CanopyStateType , only : canopystate_type
3939 use TemperatureType , only : temperature_type
4040 use EnergyFluxType , only : energyflux_type
41+ use AllocationMod , only : suplnitro, suplnNon
42+ use AllocationMod , only : suplphos, suplpNon
4143
4244 use SoilStateType , only : soilstate_type
4345 use elm_varctl , only : iulog
@@ -418,6 +420,8 @@ subroutine ELMFatesGlobals2()
418420 integer :: pass_num_luh_states
419421 integer :: pass_num_luh_transitions
420422 integer :: pass_lupftdat
423+ integer :: pass_nitrogen_supl
424+ integer :: pass_phosporus_supl
421425 ! ----------------------------------------------------------------------------------
422426 ! FATES lightning definitions
423427 ! 1 : use a global constant lightning rate found in fates_params.
@@ -486,7 +490,21 @@ subroutine ELMFatesGlobals2()
486490
487491 call set_fates_ctrlparms(' nitrogen_spec' ,ival= 1 )
488492 call set_fates_ctrlparms(' phosphorus_spec' ,ival= 1 )
489-
493+
494+ ! Pass the supplemental nutrient status flags
495+ if (suplnitro == suplnNon) then
496+ pass_nitrogen_supl = 0
497+ else
498+ pass_nitrogen_supl = 1
499+ end if
500+ if (suplphos == suplpNon) then
501+ pass_phosporus_supl = 0
502+ else
503+ pass_phosporus_supl = 1
504+ end if
505+ call set_fates_ctrlparms(' nitrogen_supl' ,ival= pass_nitrogen_supl)
506+ call set_fates_ctrlparms(' phosphorus_supl' ,ival= pass_phosporus_supl)
507+
490508 if (is_restart() .or. nsrest == nsrBranch) then
491509 pass_is_restart = 1
492510 else
0 commit comments