Skip to content

Commit d80e784

Browse files
author
Kieran Ricardo
committed
add ocean current coupling
1 parent db36c66 commit d80e784

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

mediator/esmFldsExchange_access_mod.F90

+6-2
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ subroutine esmFldsExchange_access_advt(gcomp, phase, rc)
131131
! ---------------------------------------------------------------------
132132
! to atm: from ocn
133133
! ---------------------------------------------------------------------
134-
allocate(S_flds(1))
135-
S_flds = (/'So_t'/) ! sea_surface_temperature
134+
allocate(S_flds(3))
135+
S_flds = (/'So_t', 'So_u', 'So_v'/) ! sea_surface_temperature
136136
do n = 1,size(S_flds)
137137
fldname = trim(S_flds(n))
138138
call addfld_from(compocn, trim(fldname))
@@ -395,6 +395,10 @@ subroutine esmFldsExchange_access_init(gcomp, phase, rc)
395395
! ---------------------------------------------------------------------
396396
call addmap_from(compocn, 'So_t', compatm, mapconsf, 'ofrac', 'unset')
397397
call addmrg_to(compatm, 'So_t', mrg_from=compocn, mrg_fld='So_t', mrg_type='copy')
398+
call addmap_from(compocn, 'So_u', compatm, mapconsf, 'ofrac', 'unset')
399+
call addmrg_to(compatm, 'So_u', mrg_from=compocn, mrg_fld='So_u', mrg_type='copy')
400+
call addmap_from(compocn, 'So_v', compatm, mapconsf, 'ofrac', 'unset')
401+
call addmrg_to(compatm, 'So_v', mrg_from=compocn, mrg_fld='So_v', mrg_type='copy')
398402

399403
call addmap_from(compice, 'Si_t', compatm, mapconsd, 'ifrac', 'unset')
400404
call addmrg_to(compatm, 'Si_t', mrg_from=compice, mrg_fld='Si_t', mrg_type='copy')

0 commit comments

Comments
 (0)