Skip to content

Commit 3ef6ee7

Browse files
committed
Fix tests
1 parent 04d757d commit 3ef6ee7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

benchmarks/smoothed_particle_hydrodynamics.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ function benchmark_wcsph_fp32(neighborhood_search, coordinates_;
100100
fluid_system = WeaklyCompressibleSPHSystem(fluid, fluid_density_calculator,
101101
state_equation, smoothing_kernel,
102102
smoothing_length, viscosity = viscosity,
103-
acceleration = (0.0f0, 0.0f0, 0.0f0),
103+
acceleration = ntuple(_ -> 0.0f0,
104+
Val(ndims(neighborhood_search))),
104105
density_diffusion = density_diffusion)
105106

106107
system = PointNeighbors.Adapt.adapt(parallelization_backend, fluid_system)

0 commit comments

Comments
 (0)