Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
svchb committed Nov 24, 2023
1 parent 8612c82 commit 09a1ea4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/schemes/fluid/weakly_compressible_sph/rhs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
smoothing_kernel = Val(:smoothing_kernel)
TrixiParticles.ndims(::Val{:smoothing_kernel}) = 2
smoothing_length = -1.0
correction = Nothing()

initial_condition = InitialCondition(coordinates, velocity, mass,
density)
Expand All @@ -53,13 +54,15 @@
system, system, rho_a, rho_b,
pos_diff, distance,
grad_kernel,
density_calculator)
density_calculator,
correction)

dv2 = TrixiParticles.pressure_acceleration(1.0, m_a, neighbor, particle,
system, system, rho_b, rho_a,
-pos_diff, distance,
-grad_kernel,
density_calculator)
density_calculator,
correction)

# Test that both forces are identical but in opposite directions
@test isapprox(m_a * dv1, -m_b * dv2, rtol=2eps())
Expand Down

0 comments on commit 09a1ea4

Please sign in to comment.