Skip to content

Commit 16c4f71

Browse files
author
LasNikas
committed
fix merge bug
1 parent ee61bc8 commit 16c4f71

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/schemes/fluid/pressure_acceleration.jl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,12 @@ See [Tensile Instability Control](@ref tic) for more information on this techniq
5151
and therefore requires a free surface detection method. This is not yet implemented.
5252
**This technique cannot be used in a free surface simulation.**
5353
"""
54-
@inline function tensile_instability_control(m_a, m_b, rho_a, rho_b, p_a::Real, p_b, W_a)
54+
@inline function tensile_instability_control(m_a, m_b, rho_a, rho_b, p_a, p_b, W_a)
5555
# Same as `pressure_acceleration_continuity_density`, but using the minus formulation
5656
# when pressures are negative to avoid tensile instability.
5757
return -m_b * (abs(p_a) + p_b) / (rho_a * rho_b) * W_a
5858
end
5959

60-
# Fallback when `p_a` is not a scalar but a field, as it is the case in `dv_shifting`
61-
@inline function tensile_instability_control(m_a, m_b, rho_a, rho_b, p_a, p_b, W_a)
62-
return pressure_acceleration_continuity_density(m_a, m_b, rho_a, rho_b, p_a, p_b, W_a)
63-
end
64-
6560
# This formulation was introduced by Hu and Adams (2006). https://doi.org/10.1016/j.jcp.2005.09.001
6661
# They argued that the formulation is more flexible because of the possibility to formulate
6762
# different inter-particle averages or to assume different inter-particle distributions.

0 commit comments

Comments
 (0)