@@ -768,6 +768,7 @@ subroutine med_aofluxes_init_xgrid(gcomp, aoflux_in, aoflux_out, rc)
768
768
type (ESMF_Mesh) :: xch_mesh
769
769
real (r8 ), pointer :: dataptr(:)
770
770
integer :: fieldcount
771
+ integer :: stp ! srcTermProcessing is declared inout and must have variable not constant
771
772
type (ESMF_CoordSys_Flag) :: coordSys
772
773
real (ESMF_KIND_R8 ) ,allocatable :: garea(:)
773
774
character (len=* ),parameter :: subname= ' (med_aofluxes_init_xgrid) '
@@ -870,11 +871,12 @@ subroutine med_aofluxes_init_xgrid(gcomp, aoflux_in, aoflux_out, rc)
870
871
regridmethod= ESMF_REGRIDMETHOD_CONSERVE_2ND, rc= rc)
871
872
if (chkerr(rc,__LINE__,u_FILE_u)) return
872
873
if (trim (coupling_mode) == ' cesm' ) then
874
+ stp = 1
873
875
call ESMF_FieldRegridStore(field_a, field_x, routehandle= rh_agrid2xgrid_bilinr, &
874
- regridmethod= ESMF_REGRIDMETHOD_BILINEAR, dstMaskValues= (/ 0 / ), rc= rc)
876
+ regridmethod= ESMF_REGRIDMETHOD_BILINEAR, dstMaskValues= (/ 0 / ), srcTermProcessing = stp, rc= rc)
875
877
if (chkerr(rc,__LINE__,u_FILE_u)) return
876
878
call ESMF_FieldRegridStore(field_a, field_x, routehandle= rh_agrid2xgrid_patch, &
877
- regridmethod= ESMF_REGRIDMETHOD_PATCH, dstMaskValues= (/ 0 / ), rc= rc)
879
+ regridmethod= ESMF_REGRIDMETHOD_PATCH, dstMaskValues= (/ 0 / ), srcTermProcessing = stp, rc= rc)
878
880
if (chkerr(rc,__LINE__,u_FILE_u)) return
879
881
end if
880
882
0 commit comments