Skip to content

Commit e1dd6ad

Browse files
authored
Hotfix for unit tests (trixi-framework#776)
1 parent 9ef50a1 commit e1dd6ad

File tree

1 file changed

+2
-16
lines changed
  • test/schemes/solid/total_lagrangian_sph

1 file changed

+2
-16
lines changed

test/schemes/solid/total_lagrangian_sph/rhs.jl

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -90,24 +90,10 @@
9090
TrixiParticles.kernel_deriv(::Val{:mock_smoothing_kernel}, _, _) = kernel_deriv
9191
Base.eps(::Type{Val{:mock_smoothing_length}}) = eps()
9292

93-
# Mock the neighborhood search
94-
nhs = Val(:nhs)
95-
TrixiParticles.PointNeighbors.eachneighbor(_, ::Val{:nhs}) = eachneighbor
96-
TrixiParticles.PointNeighbors.search_radius(::Val{:nhs}) = 100.0
97-
98-
function Base.getproperty(::Val{:nhs}, f::Symbol)
99-
if f === :periodic_box
100-
return nothing
101-
end
102-
103-
# For all other properties, return mock objects
104-
return Val(Symbol("mock_" * string(f)))
105-
end
106-
TrixiParticles.ndims(::Val{:nhs}) = 2
107-
10893
function TrixiParticles.get_neighborhood_search(system, neighbor_system,
10994
semi::Val{:semi_solid_interact})
110-
return nhs
95+
return TrivialNeighborhoodSearch{2}(search_radius=1000.0,
96+
eachpoint=eachneighbor)
11197
end
11298
TrixiParticles.kernel_deriv(::Val{:mock_smoothing_kernel}, _, _) = kernel_deriv
11399
Base.eps(::Type{Val{:mock_smoothing_length}}) = eps()

0 commit comments

Comments
 (0)