From de11259f869ec044003d4b825d16c32a9f80b521 Mon Sep 17 00:00:00 2001 From: Oliver Sander <oliver.sander@tu-dresden.de> Date: Fri, 5 Jan 2018 11:40:48 +0100 Subject: [PATCH] Measure h1 semi norm instead of the full norm --- src/compute-disc-error.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compute-disc-error.cc b/src/compute-disc-error.cc index 8f06cca4..27b6bd37 100644 --- a/src/compute-disc-error.cc +++ b/src/compute-disc-error.cc @@ -185,7 +185,7 @@ void measureDiscreteEOC(const GridView gridView, << " " << "L^2 error: " << std::sqrt(l2ErrorSquared) << " " - << "H^1 error: " << std::sqrt(l2ErrorSquared + h1ErrorSquared) + << "h^1 error: " << std::sqrt(h1ErrorSquared) << std::endl; } } @@ -265,7 +265,7 @@ void measureAnalyticalEOC(const GridView gridView, << " " << "L^2 error: " << l2Error << " "; - std::cout << "H^1 error: " << std::sqrt(l2Error*l2Error + h1Error) << std::endl; + std::cout << "h^1 error: " << std::sqrt(h1Error) << std::endl; } template <class GridType, class TargetSpace> -- GitLab