Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
svchb committed May 27, 2024
1 parent 53d3736 commit c25c256
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/general/semidiscretization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -652,10 +652,15 @@ function update_nhs!(neighborhood_search,
return neighborhood_search
end

function update_nhs!(neighborhood_search, system::RigidSPHSystem, neighbor::RigidSPHSystem,
function update_nhs!(neighborhood_search,
system::RigidSPHSystem,
neighbor::Union{FluidSystem, TotalLagrangianSPHSystem, RigidSPHSystem},
u_system, u_neighbor)
# Don't update. Neighborhood search works on the initial coordinates, which don't change.
return neighborhood_search
# The current coordinates of fluids and solids change over time
PointNeighbors.update!(neighborhood_search,
current_coordinates(u_system, system),
current_coordinates(u_neighbor, neighbor),
particles_moving=(true, true))
end

function update_nhs!(neighborhood_search,
Expand Down

0 comments on commit c25c256

Please sign in to comment.