Skip to content

Commit

Permalink
Bring back the velocity perf test
Browse files Browse the repository at this point in the history
  • Loading branch information
trontrytel committed Jul 26, 2024
1 parent fa6ccfe commit 497016e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/P3_particle_properties.jl
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ function p3_mass(
return mass_nl(p3, D) # dense nonspherical ice
elseif th.D_cr > D >= th.D_gr
return mass_s(D, th.ρ_g) # graupel
elseif D >= th.D_cr
return mass_r(p3, D, F_r) # partially rimed ice
else #elseif D >= th.D_cr
mass_r(p3, D, F_r) # partially rimed ice
end
end

Expand Down
15 changes: 7 additions & 8 deletions test/performance_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,13 @@ function benchmark_test(FT)
(p3, q_ice, N, ρ_r, F_r),
1e5,
)
# TODO
#bench_press(
# P3.ice_terminal_velocity,
# (p3, ch2022.snow_ice, q_ice, N, ρ_r, F_r, ρ_air),
# 2e5,
# 3e4,
# 2e3,
#)
bench_press(
P3.ice_terminal_velocity,
(p3, ch2022.snow_ice, q_ice, N, ρ_r, F_r, ρ_air),
2.1e5,
3e4,
2e3,
)
bench_press(P3.D_m, (p3, q_ice, N, ρ_r, F_r), 1e5)
end

Expand Down

0 comments on commit 497016e

Please sign in to comment.