Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions mediator/med.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2036,13 +2036,13 @@ subroutine DataInitialize(gcomp, rc)

if ( is_local%wrap%med_coupling_active(compocn,compatm) .or. is_local%wrap%med_coupling_active(compatm,compocn)) then

if (.not. is_local%wrap%med_coupling_active(compatm,compocn)) then
is_local%wrap%med_coupling_active(compatm,compocn) = .true.
end if

! Create field bundles for mediator ocean albedo computation
fieldCount = med_fldList_GetNumFlds(fldListMed_ocnalb)
if (fieldCount > 0) then
if (.not. is_local%wrap%med_coupling_active(compatm,compocn)) then
is_local%wrap%med_coupling_active(compatm,compocn) = .true.
end if

allocate(fldnames(fieldCount))
call med_fldList_getfldnames(fldListMed_ocnalb%flds, fldnames, rc=rc)
if (ChkErr(rc,__LINE__,u_FILE_u)) return
Expand Down Expand Up @@ -2389,7 +2389,8 @@ subroutine DataInitialize(gcomp, rc)
!---------------------------------------
! Initialize mediator IO
!---------------------------------------
call med_io_init()
call med_io_init(gcomp, rc)
if (ChkErr(rc,__LINE__,u_FILE_u)) return

!---------------------------------------
! Initialize mediator water/heat budget diags
Expand Down
Loading