File tree Expand file tree Collapse file tree 1 file changed +2
-16
lines changed
test/schemes/solid/total_lagrangian_sph Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Original file line number Diff line number Diff line change 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 ()
You can’t perform that action at this time.
0 commit comments