@@ -32,7 +32,7 @@ module med_phases_prep_atm_mod
32
32
33
33
real (r8 ), public :: global_htot_corr(1 ) = 0._r8 ! enthalpy correction from med_phases_prep_ocn
34
34
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' ,&
36
36
' Faoo_fn2o_ocn' ,' Faoo_fnh3_ocn' / )
37
37
38
38
character (* ), parameter :: u_FILE_u = &
@@ -211,7 +211,7 @@ subroutine med_phases_prep_atm(gcomp, rc)
211
211
call ESMF_FieldGet(lfield, farrayPtr= ofrac, rc= rc)
212
212
if (chkerr(rc,__LINE__,u_FILE_u)) return
213
213
214
- do nf = 1 ,len (fldnames_from_ocn)
214
+ do nf = 1 ,size (fldnames_from_ocn)
215
215
if ( FB_FldChk(is_local% wrap% FBExp(compatm) , trim (fldnames_from_ocn(nf)), rc= rc) .and. &
216
216
FB_FldChk(is_local% wrap% FBImp(compocn,compocn), trim (fldnames_from_ocn(nf)), rc= rc)) then
217
217
call ESMF_FieldBundleGet(is_local% wrap% FBImp(compocn,compatm), &
0 commit comments