Skip to content

Commit 4811394

Browse files
committed
move getandsettime call under read condition in clmfates%restart
1 parent e7d3fdf commit 4811394

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/utils/clmfates_interfaceMod.F90

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1881,9 +1881,6 @@ subroutine restart( this, bounds_proc, ncid, flag, waterdiagnosticbulk_inst, &
18811881
! I think that is it...
18821882
! ---------------------------------------------------------------------------------
18831883

1884-
! Set the FATES global time and date variables
1885-
call GetAndSetTime
1886-
18871884
if(.not.initialized) then
18881885

18891886
initialized=.true.
@@ -2016,6 +2013,11 @@ subroutine restart( this, bounds_proc, ncid, flag, waterdiagnosticbulk_inst, &
20162013
! ---------------------------------------------------------------------------------
20172014

20182015
if(flag=='read')then
2016+
! pass time to FATES internal variables
2017+
! since this routine is called on 'define','write','read'
2018+
! and the first two can be called whenever, calling this outside 'read'
2019+
! will change the time that has been previously set in dynamics_driver
2020+
call GetAndSetTime
20192021

20202022
!$OMP PARALLEL DO PRIVATE (nc,bounds_clump,s)
20212023
do nc = 1, nclumps

0 commit comments

Comments
 (0)