Skip to content

Commit

Permalink
Merge pull request #824 from GEOS-ESM/feature/zhaobin74/enable-cgrid-evp
Browse files Browse the repository at this point in the history
enable C-EVP in CICE6
  • Loading branch information
mathomp4 authored Sep 28, 2023
2 parents 8c01594 + 37bc32c commit 8eb267a
Show file tree
Hide file tree
Showing 7 changed files with 1,213 additions and 8 deletions.
5 changes: 5 additions & 0 deletions GEOSogcm_GridComp/GEOS_OgcmGridComp.F90
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,11 @@ subroutine SetServices ( GC, RC )
SRC_ID = SEAICE, &
RC=STATUS )
VERIFY_(STATUS)
call MAPL_AddConnectivity ( GC, &
SHORT_NAME = (/'UWC','VWC'/), &
SRC_ID = OCEAN, &
DST_ID = SEAICE, &
_RC)
endif
end if

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,26 @@ subroutine SetServices ( GC, RC )
RC=STATUS )
VERIFY_(STATUS)

call MAPL_AddImportSpec(GC, &
SHORT_NAME = 'UWC', &
LONG_NAME = 'water_skin_eastward_cgrid_velocity', &
UNITS = 'm s-1 ', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, &
DEFAULT = 0.0, &
RC=STATUS )
VERIFY_(STATUS)

call MAPL_AddImportSpec(GC, &
SHORT_NAME = 'VWC', &
LONG_NAME = 'water_skin_northward_cgrid_velocity',&
UNITS = 'm s-1 ', &
DIMS = MAPL_DimsHorzOnly, &
VLOCATION = MAPL_VLocationNone, &
DEFAULT = 0.0, &
RC=STATUS )
VERIFY_(STATUS)

call MAPL_AddImportSpec(GC, &
SHORT_NAME = 'SLV', &
LONG_NAME = 'sea_level_with_ice_loading', &
Expand Down Expand Up @@ -758,6 +778,8 @@ subroutine Run ( GC, IMPORT, EXPORT, CLOCK, RC )
REAL_, pointer :: TAUY(:,:) => null()
REAL_, pointer :: UWB(:,:) => null()
REAL_, pointer :: VWB(:,:) => null()
REAL_, pointer :: UWC(:,:) => null()
REAL_, pointer :: VWC(:,:) => null()
REAL_, pointer :: SLV(:,:) => null()

! Temporaries
Expand Down Expand Up @@ -813,6 +835,8 @@ subroutine Run ( GC, IMPORT, EXPORT, CLOCK, RC )
call MAPL_GetPointer(IMPORT, SLV, 'SLV' , _RC)
call MAPL_GetPointer(IMPORT, UWB, 'UWB' , _RC)
call MAPL_GetPointer(IMPORT, VWB, 'VWB' , _RC)
call MAPL_GetPointer(IMPORT, UWC, 'UWC' , _RC)
call MAPL_GetPointer(IMPORT, VWC, 'VWC' , _RC)

call MAPL_GetPointer(EXPORT, TI, 'TI' , alloc=.true., _RC)
call MAPL_GetPointer(EXPORT, FI, 'FRSEAICE' , alloc=.true., _RC)
Expand All @@ -830,7 +854,7 @@ subroutine Run ( GC, IMPORT, EXPORT, CLOCK, RC )

!call ice_import_thermo2()

call ice_import_dyna(TAUX, TAUY, SLV, UWB, VWB, _RC)
call ice_import_dyna(TAUX, TAUY, SLV, UWB, VWB, UWC, VWC, _RC)


call CICE_Run
Expand Down
Loading

0 comments on commit 8eb267a

Please sign in to comment.