Skip to content

Commit ec63421

Browse files
authored
Merge pull request #284 from rgknox/rgknox-logging-nl
logging namelist switch
2 parents 2c6f697 + 2d63622 commit ec63421

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

biogeochem/EDLoggingMortalityMod.F90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ module EDLoggingMortalityMod
3636
use FatesInterfaceMod , only : hlm_model_day
3737
use FatesInterfaceMod , only : hlm_day_of_year
3838
use FatesInterfaceMod , only : hlm_days_per_year
39+
use FatesInterfaceMod , only : hlm_use_logging
3940
use FatesConstantsMod , only : itrue,ifalse
4041
use FatesGlobals , only : endrun => fates_endrun
4142
use FatesGlobals , only : fates_log
@@ -78,8 +79,7 @@ subroutine IsItLoggingTime(is_master,currentSite)
7879
logging_time = .false.
7980
icode = int(logging_event_code)
8081

81-
! if(hlm_use_logging.eq.ifalse) return ! Don't turn on until fates-clm adds
82-
! this to the interface (RGK 08-2017)
82+
if(hlm_use_logging.eq.ifalse) return
8383

8484
if(icode .eq. 1) then
8585
! Logging is turned off

main/FatesInterfaceMod.F90

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,11 +1124,7 @@ subroutine set_fates_ctrlparms(tag,ival,rval,cval)
11241124
hlm_use_vertsoilc = unset_int
11251125
hlm_use_spitfire = unset_int
11261126
hlm_use_planthydro = unset_int
1127-
hlm_use_logging = ifalse ! (RGK: to allow backwards compatibility
1128-
! defaulting to FALSE, this will allow
1129-
! the call from the HLM to not necessarily
1130-
! be forced to exist. Will set this to unset
1131-
! along with other non backwards compatible changes
1127+
hlm_use_logging = unset_int
11321128
hlm_use_ed_st3 = unset_int
11331129
hlm_use_ed_prescribed_phys = unset_int
11341130
hlm_use_inventory_init = unset_int
@@ -1172,7 +1168,7 @@ subroutine set_fates_ctrlparms(tag,ival,rval,cval)
11721168

11731169
if ( .not.((hlm_use_logging .eq.1).or.(hlm_use_logging.eq.0)) ) then
11741170
if (fates_global_verbose()) then
1175-
write(fates_log(), *) 'The FATES namelist planthydro flag must be 0 or 1, exiting'
1171+
write(fates_log(), *) 'The FATES namelist use_logging flag must be 0 or 1, exiting'
11761172
end if
11771173
call endrun(msg=errMsg(sourcefile, __LINE__))
11781174
end if
@@ -1411,7 +1407,7 @@ subroutine set_fates_ctrlparms(tag,ival,rval,cval)
14111407
case('use_logging')
14121408
hlm_use_logging = ival
14131409
if (fates_global_verbose()) then
1414-
write(fates_log(),*) 'Transfering hlm_use_planthydro= ',ival,' to FATES'
1410+
write(fates_log(),*) 'Transfering hlm_use_logging= ',ival,' to FATES'
14151411
end if
14161412

14171413
case('use_ed_st3')

0 commit comments

Comments
 (0)