Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
efaulhaber committed Dec 12, 2024
1 parent 9ef452c commit 83be60a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/schemes/boundary/dummy_particles/dummy_particles.jl
Original file line number Diff line number Diff line change
Expand Up @@ -377,19 +377,17 @@ function compute_pressure!(boundary_model,
if allow_loop_flipping &&
nparticles(system) > div(Threads.nthreads(), 2) * nparticles(neighbor_system)

nhs = get_neighborhood_search(neighbor_system, system, semi)

# Loop over fluid particles and then the neighboring boundary particles
# to extrapolate fluid pressure to the boundaries.
nhs = get_neighborhood_search(neighbor_system, system, semi)
boundary_pressure_extrapolation_neighbor!(boundary_model, system,
neighbor_system,
system_coords, neighbor_coords, v,
v_neighbor_system, nhs)
else
nhs = get_neighborhood_search(system, neighbor_system, semi)

# Loop over boundary particles and then the neighboring fluid particles
# to extrapolate fluid pressure to the boundaries.
nhs = get_neighborhood_search(system, neighbor_system, semi)
boundary_pressure_extrapolation!(boundary_model, system,
neighbor_system,
system_coords, neighbor_coords, v,
Expand Down
2 changes: 1 addition & 1 deletion validation/dam_break_2d/validation_dam_break_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ postprocessing_cb = PostprocessCallback(; dt=0.02, output_directory="out",
trixi_include(@__MODULE__, joinpath(examples_dir(), "fluid", "dam_break_2d.jl"),
fluid_particle_spacing=particle_spacing,
smoothing_length=smoothing_length, smoothing_kernel=smoothing_kernel,
boundary_density_calculator = boundary_density_calculator,
boundary_density_calculator=boundary_density_calculator,
boundary_layers=4,
solution_prefix="validation_" * method * "_" * formatted_string,
extra_callback=postprocessing_cb, tspan=tspan,
Expand Down

0 comments on commit 83be60a

Please sign in to comment.