Skip to content

Commit 6903518

Browse files
authored
Merge pull request #1344 from JessicaNeedham/new-namelist
Add namelist switches and parameter file changes ahead of upcoming PR on Johnson & Berry electron transport model
2 parents a91cc42 + 57a1961 commit 6903518

File tree

5 files changed

+1904
-0
lines changed

5 files changed

+1904
-0
lines changed

main/FatesInterfaceMod.F90

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1502,6 +1502,7 @@ subroutine set_fates_ctrlparms(tag,ival,rval,cval)
15021502
hlm_maintresp_leaf_model = unset_int
15031503
hlm_mort_cstarvation_model = unset_int
15041504
hlm_radiation_model = unset_int
1505+
hlm_electron_transport_model = unset_int
15051506
hlm_regeneration_model = unset_int
15061507
hlm_use_logging = unset_int
15071508
hlm_use_ed_st3 = unset_int
@@ -1827,6 +1828,11 @@ subroutine set_fates_ctrlparms(tag,ival,rval,cval)
18271828
call endrun(msg=errMsg(sourcefile, __LINE__))
18281829
end if
18291830

1831+
if(hlm_electron_transport_model .eq. unset_int) then
1832+
write(fates_log(), *) 'electron transport model is unset: hlm_electron_transport_model exiting'
1833+
call endrun(msg=errMsg(sourcefile, __LINE__))
1834+
end if
1835+
18301836
if(hlm_regeneration_model .eq. unset_int) then
18311837
write(fates_log(), *) 'seed regeneration model is unset: hlm_regeneration_model exiting'
18321838
call endrun(msg=errMsg(sourcefile, __LINE__))
@@ -2083,6 +2089,12 @@ subroutine set_fates_ctrlparms(tag,ival,rval,cval)
20832089
write(fates_log(),*) 'Transfering hlm_radiation_model ',ival,' to FATES'
20842090
end if
20852091

2092+
case('electron_transport_model')
2093+
hlm_electron_transport_model = ival
2094+
if (fates_global_verbose()) then
2095+
write(fates_log(),*) 'Transfering hlm_electron_transport_model ',ival,' to FATES'
2096+
end if
2097+
20862098
case('regeneration_model')
20872099
hlm_regeneration_model = ival
20882100
if (fates_global_verbose()) then

main/FatesInterfaceTypesMod.F90

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,11 @@ module FatesInterfaceTypesMod
189189
integer, public :: hlm_radiation_model ! Switch for radiation model
190190
! Norman (1) and Two-stream (2)
191191

192+
integer, public :: hlm_electron_transport_model ! Switch for electron transport model
193+
! (1) for Farquhar von Caemmerer & Berry (FvCB)
194+
! (2) for Johnson & Berry (2021) (JB)
195+
196+
192197
integer, public :: hlm_regeneration_model ! Switch for choosing between regeneration models:
193198
! (1) for Fates default
194199
! (2) for the Tree Recruitment Scheme (Hanbury-Brown et al., 2022)

0 commit comments

Comments
 (0)