@@ -46,10 +46,10 @@ module med_map_mod
46
46
subroutine med_map_RouteHandles_initfrom_esmflds (gcomp , flds_scalar_name , llogunit , rc )
47
47
48
48
!- --------------------------------------------
49
- ! Initialize route handles in the mediator and also
49
+ ! Initialize route handles in the mediator and also
50
50
! nitialize unity normalization fields and do the mapping for
51
51
! unity normalization up front
52
- !
52
+ !
53
53
! Assumptions:
54
54
! - Route handles are created per target field bundles NOT
55
55
! per individual fields in the bundle
@@ -138,7 +138,7 @@ subroutine med_map_RouteHandles_initfrom_esmflds(gcomp, flds_scalar_name, llogun
138
138
if (chkerr(rc,__LINE__,u_FILE_u)) return
139
139
140
140
! Check number of fields in source FB on destination mesh and get destination field
141
- if (.not. ESMF_FieldBundleIsCreated(is_local% wrap% FBImp(n1,n2))) then
141
+ if (.not. ESMF_FieldBundleIsCreated(is_local% wrap% FBImp(n1,n2))) then
142
142
call ESMF_LogWrite(trim (subname)// ' FBImp(' // trim (compname(n1))// ' ,' // trim (compname(n2))// ' )' // &
143
143
' has not been created' , ESMF_LOGMSG_ERROR, line= __LINE__, file= u_FILE_u)
144
144
rc = ESMF_FAILURE
@@ -213,7 +213,7 @@ subroutine med_map_RouteHandles_initfrom_esmflds(gcomp, flds_scalar_name, llogun
213
213
allocate (fieldlist(fieldcount))
214
214
call ESMF_FieldBundleGet(is_local% wrap% FBExp(n1), fieldlist= fieldlist, rc= rc)
215
215
if (ChkErr(rc,__LINE__,u_FILE_u)) return
216
- else
216
+ else
217
217
allocate (fieldlist(fieldcount))
218
218
call ESMF_FieldBundleGet(is_local% wrap% FBImp(n1,n1), fieldlist= fieldlist, rc= rc)
219
219
if (ChkErr(rc,__LINE__,u_FILE_u)) return
@@ -893,8 +893,10 @@ subroutine med_map_packed_field_create(destcomp, flds_scalar_name, &
893
893
894
894
packed_data(mapindex)% field_fracsrc = ESMF_FieldCreate(lmesh_src, ESMF_TYPEKIND_R8 , &
895
895
meshloc= ESMF_MESHLOC_ELEMENT, rc= rc)
896
+ if (chkerr(rc,__LINE__,u_FILE_u)) return
896
897
packed_data(mapindex)% field_fracdst = ESMF_FieldCreate(lmesh_dst, ESMF_TYPEKIND_R8 , &
897
898
meshloc= ESMF_MESHLOC_ELEMENT, rc= rc)
899
+ if (chkerr(rc,__LINE__,u_FILE_u)) return
898
900
end if
899
901
end do ! end loop over mapindex
900
902
@@ -1047,6 +1049,7 @@ subroutine med_map_field_packed(FBSrc, FBDst, FBFracSrc, field_normOne, packed_d
1047
1049
maptype= mapindex, &
1048
1050
field_normsrc= field_fracsrc, &
1049
1051
field_normdst= packed_data(mapindex)% field_fracdst, rc= rc)
1052
+ if (chkerr(rc,__LINE__,u_FILE_u)) return
1050
1053
1051
1054
else if ( trim (packed_data(mapindex)% mapnorm) == ' one' .or. trim (packed_data(mapindex)% mapnorm) == ' none' ) then
1052
1055
0 commit comments