@@ -231,7 +231,6 @@ pub fn grid_loop_avx2(c: &mut Criterion) {
231231 #[ cfg( all( target_feature = "avx2" , target_feature = "fma" ) ) ]
232232 {
233233 let avx_result = unsafe {
234- let kernel = CubicSplineKernel :: new ( params. compact_support_radius ) ;
235234 let mut params = params. clone ( ) ;
236235 dense_subdomains:: density_grid_loop_avx (
237236 params. levelset_grid . as_mut_slice ( ) ,
@@ -243,7 +242,8 @@ pub fn grid_loop_avx2(c: &mut Criterion) {
243242 params. cube_radius ,
244243 params. squared_support_with_margin ,
245244 params. particle_rest_mass ,
246- & kernel,
245+ params. compact_support_radius ,
246+ splashsurf_lib:: kernel:: KernelType :: CubicSpline ,
247247 ) ;
248248 params. levelset_grid
249249 } ;
@@ -268,7 +268,6 @@ pub fn grid_loop_avx2(c: &mut Criterion) {
268268 unsafe {
269269 group. bench_function ( "grid_loop_avx2" , |b| {
270270 b. iter ( || {
271- let kernel = CubicSplineKernel :: new ( params. compact_support_radius ) ;
272271 let mut params = params. clone ( ) ;
273272 dense_subdomains:: density_grid_loop_avx (
274273 params. levelset_grid . as_mut_slice ( ) ,
@@ -280,7 +279,8 @@ pub fn grid_loop_avx2(c: &mut Criterion) {
280279 params. cube_radius ,
281280 params. squared_support_with_margin ,
282281 params. particle_rest_mass ,
283- & kernel,
282+ params. compact_support_radius ,
283+ splashsurf_lib:: kernel:: KernelType :: CubicSpline ,
284284 ) ;
285285 } )
286286 } ) ;
0 commit comments