Skip to content

Commit

Permalink
fix bug again
Browse files Browse the repository at this point in the history
  • Loading branch information
LasNikas committed Dec 5, 2023
1 parent c28ad27 commit 4ce423c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/schemes/boundary/monaghan_kajtar/monaghan_kajtar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ function Base.show(io::IO, model::BoundaryModelMonaghanKajtar)
end

@inline function pressure_acceleration(pressure_correction, m_b, p_a, p_b,
boundary_model::BoundaryModelMonaghanKajtar,
rho_a, rho_b, pos_diff::SVector{NDIMS},
smoothing_length, grad_kernel,
boundary_model::BoundaryModelMonaghanKajtar,
density_calculator) where {NDIMS}
(; K, beta, boundary_particle_spacing) = boundary_model

Expand Down
5 changes: 2 additions & 3 deletions src/schemes/solid/total_lagrangian_sph/rhs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,9 @@ function interact!(dv, v_particle_system, u_particle_system,
# Boundary forces
# Note: neighbor and particle pressure are switched in this call
# and `pressure_correction` is set to `1.0` (no correction)
dv_boundary = pressure_acceleration(1.0, m_b, p_b, p_a, boundary_model,
rho_b, rho_a, pos_diff,
dv_boundary = pressure_acceleration(1.0, m_b, p_b, p_a, rho_b, rho_a, pos_diff,
neighbor_system.smoothing_length,
grad_kernel, density_calculator)
grad_kernel, boundary_model, density_calculator)
dv_particle = dv_boundary + dv_viscosity

for i in 1:ndims(particle_system)
Expand Down

0 comments on commit 4ce423c

Please sign in to comment.