Skip to content

Commit 66ce7e5

Browse files
author
Mariana Vertenstein
committed
fixed bug
1 parent 9b3cec2 commit 66ce7e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mediator/med_phases_prep_atm_mod.F90

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module med_phases_prep_atm_mod
3232

3333
real(r8), public :: global_htot_corr(1) = 0._r8 ! enthalpy correction from med_phases_prep_ocn
3434

35-
character(len=14) :: fldnames_from_ocn(5) = (/'Faoo_fbrf_ocn','Faoo_fdms_ocn ','Faoo_fco2_ocn ',&
35+
character(len=13) :: fldnames_from_ocn(5) = (/'Faoo_fbrf_ocn','Faoo_fdms_ocn','Faoo_fco2_ocn',&
3636
'Faoo_fn2o_ocn','Faoo_fnh3_ocn'/)
3737

3838
character(*), parameter :: u_FILE_u = &
@@ -211,7 +211,7 @@ subroutine med_phases_prep_atm(gcomp, rc)
211211
call ESMF_FieldGet(lfield, farrayPtr=ofrac, rc=rc)
212212
if (chkerr(rc,__LINE__,u_FILE_u)) return
213213

214-
do nf = 1,len(fldnames_from_ocn)
214+
do nf = 1,size(fldnames_from_ocn)
215215
if ( FB_FldChk(is_local%wrap%FBExp(compatm) , trim(fldnames_from_ocn(nf)), rc=rc) .and. &
216216
FB_FldChk(is_local%wrap%FBImp(compocn,compocn), trim(fldnames_from_ocn(nf)), rc=rc)) then
217217
call ESMF_FieldBundleGet(is_local%wrap%FBImp(compocn,compatm), &

0 commit comments

Comments
 (0)