@@ -175,7 +175,6 @@ subroutine SetServices (GC, RC)
175175 if (MAPL_AM_I_ROOT()) then
176176 write (* ,* ) trim (Iam)// " : Dust emission scheme is " // trim (self% emission_scheme)
177177 end if
178-
179178 ! Point Sources
180179 call ESMF_ConfigGetAttribute (cfg, self% point_emissions_srcfilen, &
181180 label= ' point_emissions_srcfilen:' , default= ' /dev/null' , __RC__)
@@ -814,9 +813,8 @@ subroutine Run1 (GC, import, export, clock, RC)
814813
815814! Set du_src to 0 where undefined
816815! --------------------------------
817- if (associated (du_src)) then
818- where (1.01 * du_src > MAPL_UNDEF) du_src = 0 .
819- endif
816+ where (1.01 * du_src > MAPL_UNDEF) du_src = 0 .
817+
820818! Get dimensions
821819! ---------------
822820 import_shape = shape (wet1)
@@ -978,7 +976,7 @@ subroutine Run2 (GC, import, export, clock, RC)
978976
979977 integer :: n
980978 real , allocatable , dimension (:,:) :: drydepositionfrequency, dqa
981- real :: fwet
979+ real , pointer , dimension (:,:,:) :: dusd_vel
982980 logical :: KIN
983981
984982 integer :: i1, j1, i2, j2, km
@@ -1039,9 +1037,11 @@ subroutine Run2 (GC, import, export, clock, RC)
10391037 do n = 1 , self% nbins
10401038 nullify(flux_ptr)
10411039 if (associated (DUSD)) flux_ptr = > DUSD(:,:,n)
1040+ nullify(dusd_vel)
1041+ if (associated (DUSD_V)) dusd_vel = > DUSD_V(:,:,:,n)
10421042 call Chem_SettlingSimple (self% km, self% klid, self% diag_Mie, n, self% cdt, MAPL_GRAV, &
10431043 DU(:,:,:,n), t, airdens, &
1044- rh2, zle, delp, flux_ptr, correctionMaring= self% maringFlag, &
1044+ rh2, zle, delp, flux_ptr, dusd_vel, correctionMaring= self% maringFlag, &
10451045 settling_scheme= settling_opt, __RC__)
10461046 end do
10471047
@@ -1070,9 +1070,8 @@ subroutine Run2 (GC, import, export, clock, RC)
10701070 select case (self% wet_removal_scheme)
10711071 case (' gocart' )
10721072 do n = 1 , self% nbins
1073- fwet = 1.0
10741073 call WetRemovalGOCART2G(self% km, self% klid, self% nbins, self% nbins, n, self% cdt, ' dust' , &
1075- KIN, MAPL_GRAV, fwet, DU(:,:,:,n), ple, t, airdens, &
1074+ KIN, MAPL_GRAV, self % fwet(n) , DU(:,:,:,n), ple, t, airdens, &
10761075 pfl_lsan, pfi_lsan, cn_prcp, ncn_prcp, DUWT, __RC__)
10771076 end do
10781077 case (' ufs' )
0 commit comments