diff --git a/mediator/med_methods_mod.F90 b/mediator/med_methods_mod.F90 index 8f1ccfa94..9167b9d45 100644 --- a/mediator/med_methods_mod.F90 +++ b/mediator/med_methods_mod.F90 @@ -425,9 +425,7 @@ subroutine med_methods_FB_init(FBout, flds_scalar_name, fieldNameList, FBgeom, S call ESMF_FieldBundleGet(FBflds, fieldName=lfieldnamelist(n), field=lfield, rc=rc) if (chkerr(rc,__LINE__,u_FILE_u)) return elseif (present(STflds)) then - call med_methods_State_getNameN(STflds, n, lname, rc) - if (chkerr(rc,__LINE__,u_FILE_u)) return - call ESMF_StateGet(STflds, itemName=lname, field=lfield, rc=rc) + call ESMF_StateGet(STflds, itemName=trim(lfieldnamelist(n)), field=lfield, rc=rc) if (chkerr(rc,__LINE__,u_FILE_u)) return end if