Skip to content

Commit 0828820

Browse files
authored
Merge pull request #1022 from GEOS-ESM/feature/zhaobin1974/update-for-mapl-rewind-fix
updated refresh method registration using newly introduced MAPL flag
2 parents 3b2cfba + 6541749 commit 0828820

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

GEOSogcm_GridComp/GEOSseaice_GridComp/CICE_GEOSPlug/CICE_GEOSPlug.F90

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ subroutine SetServices ( GC, RC )
9494
call MAPL_GridCompSetEntryPoint ( GC, ESMF_METHOD_RUN, Run, _RC)
9595
call MAPL_GridCompSetEntryPoint ( GC, ESMF_METHOD_FINALIZE, Finalize, _RC)
9696
call MAPL_GridCompSetEntryPoint ( GC, ESMF_METHOD_WRITERESTART, Record, _RC)
97-
call MAPL_GridCompSetEntryPoint ( GC, ESMF_METHOD_READRESTART, Refresh, _RC)
97+
call MAPL_GridCompSetEntryPoint ( GC, MAPL_METHOD_REFRESH, Refresh, _RC)
9898

9999
! Set the state variable specs.
100100
! -----------------------------
@@ -933,14 +933,16 @@ subroutine Record ( GC, IMPORT, EXPORT, CLOCK, RC )
933933
type(MAPL_MetaComp), pointer :: MAPL
934934

935935
! ErrLog Variables
936+
character(len=ESMF_MAXSTR) :: IAm
937+
integer :: STATUS
936938

937939
character(len=ESMF_MAXSTR) :: COMP_NAME
938940

939941
! Locals
940942
character(len=14) :: timeStamp
941943
logical :: doRecord
942944

943-
__Iam__('Record')
945+
Iam = "Record"
944946

945947
! Get the target components name and set-up traceback handle.
946948
! -----------------------------------------------------------
@@ -1003,18 +1005,18 @@ subroutine Refresh ( GC, IMPORT, EXPORT, CLOCK, RC )
10031005
integer, optional, intent( OUT) :: RC ! Error code
10041006

10051007
!EOP
1006-
10071008
type(MAPL_MetaComp), pointer :: MAPL
10081009

10091010
! ErrLog Variables
1010-
1011+
character(len=ESMF_MAXSTR) :: IAm
1012+
integer :: STATUS
10111013
character(len=ESMF_MAXSTR) :: COMP_NAME
10121014

10131015
! Locals
10141016
character(len=14) :: timeStamp
10151017
logical :: doRecord
10161018

1017-
__Iam__('Restore')
1019+
IAm = "Restore"
10181020

10191021
! Get the target components name and set-up traceback handle.
10201022
! -----------------------------------------------------------

0 commit comments

Comments
 (0)