Skip to content

Commit d2e6478

Browse files
committed
Move C14Bombspike and C13TimeSeries from Photosynthesis to clm_driver
1 parent 09c8afa commit d2e6478

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/biogeophys/PhotosynthesisMod.F90

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2067,7 +2067,7 @@ subroutine PhotosynthesisTotal (bounds, fn, filterp, &
20672067
!
20682068
! Determine total photosynthesis
20692069
!
2070-
use CIsoAtmTimeseriesMod, only : C14BombSpike, C13TimeSeries
2070+
!use CIsoAtmTimeseriesMod, only : C14BombSpike, C13TimeSeries
20712071
use CIsoAtmTimeseriesMod, only : rc13_atm_grc, rc14_atm_grc
20722072
! !ARGUMENTS:
20732073
type(bounds_type) , intent(in) :: bounds
@@ -2113,11 +2113,6 @@ subroutine PhotosynthesisTotal (bounds, fn, filterp, &
21132113
fpsn_wp => photosyns_inst%fpsn_wp_patch & ! Output: [real(r8) (:) ] product-limited photosynthesis (umol CO2 /m**2 /s)
21142114
)
21152115

2116-
! Get the current C13/C14 ratio in the atmosphere from timeseries data or the fixed values
2117-
! These calls fill the data: rc13_atm_grc and rc14_atm_grc
2118-
if ( use_c14 ) call C14BombSpike(bounds)
2119-
if ( use_c13 ) call C13TimeSeries(bounds, atm2lnd_inst)
2120-
21212116
do f = 1, fn
21222117
p = filterp(f)
21232118
g = patch%gridcell(p)

src/main/clm_driver.F90

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ subroutine clm_drv(doalb, nextsw_cday, declinp1, declin, rstwr, nlend, rdate, ro
118118
use laiStreamMod , only : lai_advance
119119
use FATESFireFactoryMod , only : scalar_lightning
120120
use FatesInterfaceTypesMod, only : fates_dispersal_cadence_none
121+
use CIsoAtmTimeseriesMod, only : C14BombSpike, C13TimeSeries
121122
!
122123
! !ARGUMENTS:
123124
implicit none
@@ -408,6 +409,10 @@ subroutine clm_drv(doalb, nextsw_cday, declinp1, declin, rstwr, nlend, rdate, ro
408409
call PrescribedSoilMoistureAdvance( bounds_proc )
409410
call t_stopf('prescribed_sm')
410411
endif
412+
! Get the current C13/C14 ratio in the atmosphere from timeseries data or the fixed values
413+
! These calls fill the data: rc13_atm_grc and rc14_atm_grc
414+
if ( use_c14 ) call C14BombSpike(bounds_proc)
415+
if ( use_c13 ) call C13TimeSeries(bounds_proc, atm2lnd_inst)
411416
! ============================================================================
412417
! Initialize the column-level mass balance checks for water, carbon & nitrogen.
413418
!

0 commit comments

Comments
 (0)