Skip to content

Commit

Permalink
errors in parcel
Browse files Browse the repository at this point in the history
  • Loading branch information
amylu00 committed Feb 7, 2024
1 parent 92f296b commit 24afca6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions parcel/parcel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function parcel_model(dY, Y, p, t)
dqi_dt_new_depo = dN_act_dt_depo * 4 / 3 * FT(π) * r_nuc^3 * ρ_ice / ρ_air
end
if "MohlerRate_Deposition" in ice_nucleation_modes
dN_act_dt_depo = MohlerDepositionRate(aerosol, ip.deposition, S_i, T, (dY[1] * ξ), N_aer)
dN_act_dt_depo = CMI_het.MohlerDepositionRate(aerosol, ip.deposition, S_i, T, (dY[1] * ξ), N_aer)
dqi_dt_new_depo = dN_act_dt_depo * 4 / 3 * FT(π) * r_nuc^3 * ρ_ice / ρ_air
end

Expand Down Expand Up @@ -268,6 +268,7 @@ function run_parcel(IC, t_0, t_end, p)
#! format: off
FT = eltype(IC)
(; const_dt, ice_nucleation_modes, growth_modes, droplet_size_distribution) = p
timestepper = ODE.Tsit5()

println(" ")
println("Running parcel model with: ")
Expand All @@ -278,15 +279,12 @@ function run_parcel(IC, t_0, t_end, p)
end
if "MohlerRate_Deposition" in ice_nucleation_modes
print("Deposition nucleation based on rate eqn in Mohler 2006 ")
timestepper = ODE.Tsit5()
end
if "ImmersionFreezing" in ice_nucleation_modes
print("Immersion freezing ")
timestepper = ODE.Tsit5()
end
if "HomogeneousFreezing" in ice_nucleation_modes
print("Homogeneous freezing ")
timestepper = ODE.Tsit5()
end
print("\n")
print("Growth modes: ")
Expand Down

0 comments on commit 24afca6

Please sign in to comment.