Skip to content

Commit

Permalink
adapt tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LasNikas committed Jul 16, 2024
1 parent 13452c8 commit b668e26
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@

boundary_system = OpenBoundarySPHSystem(boundary_zone; sound_speed,
fluid_system, buffer_size=0,
boundary_model=BoundaryModelLastiwka(),
reference_velocity,
reference_pressure,
reference_density)
Expand Down Expand Up @@ -93,7 +94,7 @@
t1 = 2.0
TrixiParticles.evaluate_characteristics!(boundary_system,
v, u, v0_ode, u0_ode, semi, t1)
evaluated_vars1 = boundary_system.characteristics
evaluated_vars1 = boundary_system.cache.characteristics

if boundary_zone isa InFlow
@test all(isapprox.(evaluated_vars1[1, :], 0.0))
Expand All @@ -113,7 +114,7 @@
t2 = 3.0
TrixiParticles.evaluate_characteristics!(boundary_system,
v, u, v0_ode, u0_ode, semi, t2)
evaluated_vars2 = boundary_system.characteristics
evaluated_vars2 = boundary_system.cache.characteristics

if boundary_zone isa InFlow
@test all(isapprox.(evaluated_vars2[1, :], 0.0))
Expand Down

0 comments on commit b668e26

Please sign in to comment.