Skip to content

Commit 3e0164f

Browse files
authored
Merge pull request #1030 from GEOS-ESM/bugfix/zhaobin1974/do-not-terminate-surfst
do not terminate SURFSTAT when running with CICE6
2 parents a6202b1 + 197de51 commit 3e0164f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

GEOSdataatm_GridComp/GEOS_DataAtmGridComp.F90

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,12 @@ subroutine SetServices ( GC, RC )
270270

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

275280
call MAPL_GenericSetServices ( GC, __RC__)
276281

@@ -1070,7 +1075,7 @@ subroutine Finalize ( gc, import, export, clock, rc )
10701075
call MAPL_TimerOn(MAPL,"TOTAL" )
10711076
call MAPL_TimerOn(MAPL,"FINALIZE")
10721077

1073-
if (DO_CICE_THERMO /= 0) call dealloc_column_physics( MAPL_AM_I_Root(), Iam )
1078+
if (DO_CICE_THERMO == 1) call dealloc_column_physics( MAPL_AM_I_Root(), Iam )
10741079

10751080
call MAPL_TimerOff(MAPL,"FINALIZE")
10761081
call MAPL_TimerOff(MAPL,"TOTAL" )

0 commit comments

Comments
 (0)