Skip to content

Commit 92802a6

Browse files
committed
bug fix
1 parent 93bc63e commit 92802a6

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/Commons/Equations/StabilizationOperations.jl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,8 @@ Bazilevs, Y., Calo, V. M., Cottrell, J. A., Hughes, T. J. R., Reali, A., & Scova
6262
"""
6363
function continuity_stabilization(uu, stab_coeff::TensorStabilization,simcase::SimulationCase)
6464
@unpack gg = stab_coeff
65-
@sunpack τm_comp = simcase
66-
if τm_comp > 0
67-
return (uu uu) * momentum_stabilization(uu, stab_coeff, simcase) #More SUPG-style
68-
elseif τm_comp <0
69-
return 1 / (momentum_stabilization(uu,stab_coeff,simcase) gg) #Standard VMS
70-
end
65+
66+
return 1 / (momentum_stabilization(uu,stab_coeff,simcase) gg) #Standard VMS
7167

7268
end
7369

src/Commons/ParametersDef/StabilizationStruct.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ end
2727

2828
@with_kw struct TensorFormulation <: StabilizationFormulation
2929
r::Int64 = 2
30-
Ci::Vector{Int64} = [4,36]
30+
Ci::Vector{Real} = [4,36]
31+
@assert (Ci[1]>=0 && Ci[2]>=0) "Ci values must be non-negative"
3132
end
3233

3334

0 commit comments

Comments
 (0)