Skip to content

Commit

Permalink
Merge pull request #427 from CliMA/aj/quadgk_debug
Browse files Browse the repository at this point in the history
Bring back the velocity perf test
  • Loading branch information
trontrytel authored Jul 26, 2024
2 parents fa6ccfe + 497016e commit b246f0d
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 b246f0d

Please sign in to comment.