Skip to content

Commit e7428a2

Browse files
committed
normalization tgv error with anlytical
1 parent 0839b22 commit e7428a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Commons/ExportUtility.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,8 +456,8 @@ function compute_error(simcase::TaylorGreen{Periodic}, params::Dict{Symbol,Any},
456456
ep = ph_analytic - ph #error pressure
457457

458458
#L2 norm error velocity and pressure
459-
l2eu = sqrt(sum((eu eu) * dΩ)) ./sqrt(sum((uh uh) * dΩ))
460-
l2ep = sqrt(sum((ep * ep) * dΩ)) ./ sqrt(sum((ph ph) * dΩ))
459+
l2eu = sqrt(sum((eu eu) * dΩ)) ./sqrt(sum((uh_analytic uh_analytic) * dΩ))
460+
l2ep = sqrt(sum((ep * ep) * dΩ)) ./ sqrt(sum((uh_analytic uh_analytic) * dΩ))
461461

462462
ALLOWED_EXPORTS = ["VelocityError", "PressureError"]
463463
selected_exports = intersect(ALLOWED_EXPORTS, simcase.simulationp.exportp.extra_export)

0 commit comments

Comments
 (0)