@@ -10,7 +10,7 @@ to retrieve first order kernel and particle consistency.
1010"""
1111struct FirstOrderMirroring{ELTYPE}
1212 firstorder_tolerance:: ELTYPE
13- function FirstOrderMirroring (; firstorder_tolerance:: Real = 1 / 1000.0f0 )
13+ function FirstOrderMirroring (; firstorder_tolerance:: Real = 1 / 1000 )
1414 return new {typeof(firstorder_tolerance)} (firstorder_tolerance)
1515 end
1616end
@@ -27,7 +27,7 @@ the corrected gradient as proposed by [Negi et al. (2022)](@cite Negi2022).
2727"""
2828struct SimpleMirroring{ELTYPE}
2929 firstorder_tolerance:: ELTYPE
30- function SimpleMirroring (; firstorder_tolerance:: Real = 1 / 1000.0f0 )
30+ function SimpleMirroring (; firstorder_tolerance:: Real = 1 / 1000 )
3131 return new {typeof(firstorder_tolerance)} (firstorder_tolerance)
3232 end
3333end
6363
6464function BoundaryModelTafuni (;
6565 mirror_method= FirstOrderMirroring (;
66- firstorder_tolerance= 1 /
67- 1000.0f0 ))
66+ firstorder_tolerance= 1 / 1000 ))
6867 return BoundaryModelTafuni (mirror_method)
6968end
7069
@@ -220,8 +219,7 @@ function extrapolate_values!(system,
220219
221220 # velocity
222221 if ! (prescribed_velocity)
223- first_order_velocity_interpolation! (v_open_boundary, system, particle,
224- L_inv,
222+ first_order_velocity_interpolation! (v_open_boundary, particle, L_inv,
225223 interpolated_velocity_correction[],
226224 two_to_end, pos_diff, mirror_method)
227225
@@ -260,7 +258,7 @@ function extrapolate_values!(system,
260258 # Only the first column is used, as the subsequent entries represent gradient
261259 # components that are not required for zeroth-order interpolation
262260 interpolated_velocity = interpolated_velocity_correction[][:, 1 ]
263- zeroth_order_velocity_interpolation! (v_open_boundary, system, particle,
261+ zeroth_order_velocity_interpolation! (v_open_boundary, particle,
264262 shepard_coefficient,
265263 interpolated_velocity)
266264
@@ -348,7 +346,7 @@ function extrapolate_values!(system, mirror_method::ZerothOrderMirroring,
348346 end
349347
350348 if ! (prescribed_velocity)
351- zeroth_order_velocity_interpolation! (v_open_boundary, system, particle,
349+ zeroth_order_velocity_interpolation! (v_open_boundary, particle,
352350 shepard_coefficient[],
353351 interpolated_velocity[])
354352
@@ -372,7 +370,7 @@ function zeroth_order_scalar_interpolation!(values, particle, shepard_coefficien
372370 return values
373371end
374372
375- function zeroth_order_velocity_interpolation! (v, system, particle, shepard_coefficient,
373+ function zeroth_order_velocity_interpolation! (v, particle, shepard_coefficient,
376374 extrapolated_velocity)
377375 velocity_interpolated = extrapolated_velocity / shepard_coefficient
378376
@@ -404,7 +402,7 @@ function first_order_scalar_interpolation!(values, particle, L_inv,
404402 return values
405403end
406404
407- function first_order_velocity_interpolation! (v, system, particle, L_inv,
405+ function first_order_velocity_interpolation! (v, particle, L_inv,
408406 interpolated_velocity_correction,
409407 two_to_end, pos_diff, :: FirstOrderMirroring )
410408 @inbounds for dim in eachindex (pos_diff)
@@ -417,7 +415,7 @@ function first_order_velocity_interpolation!(v, system, particle, L_inv,
417415 return v
418416end
419417
420- function first_order_velocity_interpolation! (v, system, particle, L_inv,
418+ function first_order_velocity_interpolation! (v, particle, L_inv,
421419 interpolated_velocity_correction,
422420 two_to_end, pos_diff, :: SimpleMirroring )
423421 @inbounds for dim in eachindex (pos_diff)
0 commit comments