Skip to content
Snippets Groups Projects
Commit de11259f authored by Sander, Oliver's avatar Sander, Oliver
Browse files

Measure h1 semi norm instead of the full norm

parent b409f7f2
No related branches found
No related tags found
No related merge requests found
...@@ -185,7 +185,7 @@ void measureDiscreteEOC(const GridView gridView, ...@@ -185,7 +185,7 @@ void measureDiscreteEOC(const GridView gridView,
<< " " << " "
<< "L^2 error: " << std::sqrt(l2ErrorSquared) << "L^2 error: " << std::sqrt(l2ErrorSquared)
<< " " << " "
<< "H^1 error: " << std::sqrt(l2ErrorSquared + h1ErrorSquared) << "h^1 error: " << std::sqrt(h1ErrorSquared)
<< std::endl; << std::endl;
} }
} }
...@@ -265,7 +265,7 @@ void measureAnalyticalEOC(const GridView gridView, ...@@ -265,7 +265,7 @@ void measureAnalyticalEOC(const GridView gridView,
<< " " << " "
<< "L^2 error: " << l2Error << "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> template <class GridType, class TargetSpace>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment