Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
LasNikas committed Jul 5, 2024
1 parent d2a5fca commit b2e4303
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/schemes/boundary/open_boundary/lastiwka.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
struct BoundaryModelLastiwka
extra_polate_reference_values::Bool
function BoundaryModelLastiwka(; extra_polate_reference_values::Bool=true)
return new{}(extra_polate_reference_values)
extrapolate_reference_values::Bool
function BoundaryModelLastiwka(; extrapolate_reference_values::Bool=true)
return new{}(extrapolate_reference_values)
end
end

Expand All @@ -10,7 +10,7 @@ end
(; density, pressure, cache, flow_direction, sound_speed,
reference_velocity, reference_pressure, reference_density) = system

if boundary_model.extra_polate_reference_values
if boundary_model.extrapolate_reference_values
(; prescribed_pressure, prescribed_velocity, prescribed_density) = cache

@trixi_timeit timer() "interpolate and correct values" begin
Expand Down
6 changes: 3 additions & 3 deletions src/schemes/boundary/open_boundary/tafuni.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function interpolate_values!(system, v_ode, u_ode, semi, t; prescribed_density=f
kernel_value = smoothing_kernel(fluid_system, distance)
grad_kernel = smoothing_kernel_grad(fluid_system, pos_diff, distance)

L, R = correction_arrys(kernel_value, grad_kernel, pos_diff, rho_b, m_b)
L, R = correction_arrays(kernel_value, grad_kernel, pos_diff, rho_b, m_b)

correction_matrix += L

Expand Down Expand Up @@ -126,7 +126,7 @@ function interpolate_values!(system, v_ode, u_ode, semi, t; prescribed_density=f
return system
end

function correction_arrys(W_ab, grad_W_ab, pos_diff::SVector{3}, rho_b, m_b)
function correction_arrays(W_ab, grad_W_ab, pos_diff::SVector{3}, rho_b, m_b)
x_ab = pos_diff[1]
y_ab = pos_diff[2]
z_ab = pos_diff[3]
Expand All @@ -147,7 +147,7 @@ function correction_arrys(W_ab, grad_W_ab, pos_diff::SVector{3}, rho_b, m_b)
return L, R
end

function correction_arrys(W_ab, grad_W_ab, pos_diff::SVector{2}, rho_b, m_b)
function correction_arrays(W_ab, grad_W_ab, pos_diff::SVector{2}, rho_b, m_b)
x_ab = pos_diff[1]
y_ab = pos_diff[2]

Expand Down

0 comments on commit b2e4303

Please sign in to comment.