Skip to content

Commit

Permalink
Merge pull request #1030 from GEOS-ESM/bugfix/zhaobin1974/do-not-term…
Browse files Browse the repository at this point in the history
…inate-surfst

do not terminate SURFSTAT when running with CICE6
  • Loading branch information
sdrabenh authored Dec 5, 2024
2 parents a6202b1 + 197de51 commit 3e0164f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions GEOSdataatm_GridComp/GEOS_DataAtmGridComp.F90
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,12 @@ subroutine SetServices ( GC, RC )

! This call is needed only when we use ReadForcing.
! If we switch to use ExtData, next line has be commented out
call MAPL_TerminateImport ( GC, ALL=.true., __RC__ )
if (DO_CICE_THERMO == 2) then
call MAPL_TerminateImport ( GC, SHORT_NAMES=['SURFSTATE'], &
CHILD_IDS=[SURF], __RC__ )
else
call MAPL_TerminateImport ( GC, ALL=.true., __RC__ )
endif

call MAPL_GenericSetServices ( GC, __RC__)

Expand Down Expand Up @@ -1070,7 +1075,7 @@ subroutine Finalize ( gc, import, export, clock, rc )
call MAPL_TimerOn(MAPL,"TOTAL" )
call MAPL_TimerOn(MAPL,"FINALIZE")

if (DO_CICE_THERMO /= 0) call dealloc_column_physics( MAPL_AM_I_Root(), Iam )
if (DO_CICE_THERMO == 1) call dealloc_column_physics( MAPL_AM_I_Root(), Iam )

call MAPL_TimerOff(MAPL,"FINALIZE")
call MAPL_TimerOff(MAPL,"TOTAL" )
Expand Down

0 comments on commit 3e0164f

Please sign in to comment.