Skip to content

Commit f901a32

Browse files
committed
add additional specialization dispatches because of dispatch changes to TrixiParticles
1 parent abfb085 commit f901a32

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

benchmarks/smoothed_particle_hydrodynamics.jl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,19 @@ end
2121
return semi.neighborhood_search
2222
end
2323

24+
# Newer TrixiParticles versions define TLSPH-specific neighborhood-search lookups.
25+
# Provide explicit tie-breakers so the benchmark shim keeps using its single NHS.
26+
@inline function TrixiParticles.get_neighborhood_search(::TotalLagrangianSPHSystem,
27+
semi::DummySemidiscretization)
28+
return semi.neighborhood_search
29+
end
30+
31+
@inline function TrixiParticles.get_neighborhood_search(::TotalLagrangianSPHSystem,
32+
::TotalLagrangianSPHSystem,
33+
semi::DummySemidiscretization)
34+
return semi.neighborhood_search
35+
end
36+
2437
"""
2538
benchmark_wcsph(neighborhood_search, coordinates;
2639
parallelization_backend = default_backend(coordinates))

0 commit comments

Comments
 (0)