From 83be60a97ce3518e5885d752ab2061631b6a695e Mon Sep 17 00:00:00 2001 From: Erik Faulhaber <44124897+efaulhaber@users.noreply.github.com> Date: Thu, 12 Dec 2024 12:12:42 +0100 Subject: [PATCH] Reformat --- src/schemes/boundary/dummy_particles/dummy_particles.jl | 6 ++---- validation/dam_break_2d/validation_dam_break_2d.jl | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/schemes/boundary/dummy_particles/dummy_particles.jl b/src/schemes/boundary/dummy_particles/dummy_particles.jl index 883b22784..16921d7c5 100644 --- a/src/schemes/boundary/dummy_particles/dummy_particles.jl +++ b/src/schemes/boundary/dummy_particles/dummy_particles.jl @@ -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, diff --git a/validation/dam_break_2d/validation_dam_break_2d.jl b/validation/dam_break_2d/validation_dam_break_2d.jl index d32bd2724..4d2efb7a8 100644 --- a/validation/dam_break_2d/validation_dam_break_2d.jl +++ b/validation/dam_break_2d/validation_dam_break_2d.jl @@ -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,