Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions MOSAIC_v2/aerosol/module_mosaic_ext.f90
Original file line number Diff line number Diff line change
Expand Up @@ -2173,7 +2173,9 @@ subroutine MESA_convergence_criterion(ibin,iconverge_mass,iconverge_flux,

use module_data_mosaic_aero, only: r8,nbin_a_max,naer,nelectrolyte,nsalt, &!Parameters
jsolid, mYES, xhyst_up_crustal_thresh, &!Parameters
mno,ioin_a,jcaso4,jcaco3 !TBD
mno,ioin_a,jcaso4,jcaco3, &!TBD
xhyst_up_crustal_thresh_partmc
use module_data_mosaic_main, only: m_partmc_mosaic

implicit none

Expand All @@ -2191,7 +2193,7 @@ subroutine MESA_convergence_criterion(ibin,iconverge_mass,iconverge_flux,
! local variables
integer je, js, iaer
real(r8) :: mass_solid, mass_solid_salt,frac_solid, XT, H_ion, &
crustal_solids, sumflux
crustal_solids, sumflux, crustal_thresh


idissolved = mno ! default = not completely dissolved
Expand Down Expand Up @@ -2256,9 +2258,16 @@ subroutine MESA_convergence_criterion(ibin,iconverge_mass,iconverge_flux,
electrolyte(jcaso4,jsolid,ibin)*mw_electrolyte(jcaso4) + &
aer(ioin_a,jsolid,ibin)*mw_aer_mac(ioin_a)

! PartMC: each bin is one particle (see module_data_mosaic_aero)
if (m_partmc_mosaic > 0) then
crustal_thresh = xhyst_up_crustal_thresh_partmc
else
crustal_thresh = xhyst_up_crustal_thresh
endif

! if(sumflux .eq. 0.0 .and. crustal_solids .eq. 0.0)then
if ( sumflux .eq. 0.0 .and. &
crustal_solids .le. xhyst_up_crustal_thresh*(mass_dry_a(ibin)*1.0e15) ) then
crustal_solids .le. crustal_thresh*(mass_dry_a(ibin)*1.0e15) ) then
! crustal_solids is ng/m^3, mass_dry_a is g/cm^3
idissolved = myes
endif
Expand Down
6 changes: 6 additions & 0 deletions MOSAIC_v2/datamodules/module_data_mosaic_aero.f90
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ module module_data_mosaic_aero
! mineral dust is mostly externally mixed, so a minor fraction of mineral dust species
! will most likely reside in a minor fraction of the particles of the bin,
! and should not control the bin aerosol water. (value = 0.0 in previous versions of mosaic)
real(r8), parameter :: xhyst_up_crustal_thresh_partmc = 1.0_r8
! the same threshold when MOSAIC is coupled to PartMC (m_partmc_mosaic > 0):
! there each bin is one particle, so the reason above (dust externally
! mixed within a bin) does not apply, and a particle whose salts have all
! dissolved goes to the upper hysteresis curve whatever its crustal
! fraction (1.0 = no restriction), like any other particle.

integer, parameter :: no_aerosol = 0 ! flag
integer, parameter :: all_solid = 1 ! flag
Expand Down
Loading