Skip to content
Snippets Groups Projects
Commit 5957a1bd authored by Hörl, Maximilian's avatar Hörl, Maximilian
Browse files

shift evaluation for vtk output to correctly picture discontinuities at the interface

parent 1c677096
No related branches found
No related tags found
No related merge requests found
...@@ -524,8 +524,10 @@ protected: ...@@ -524,8 +524,10 @@ protected:
for (int k = 0; k < geo.corners(); k++) for (int k = 0; k < geo.corners(); k++)
{ {
if (problem_.hasExactSolution()) if (problem_.hasExactSolution())
{ { //evaluation at the corners is slightly shifted towards the center of
exactPressure[elemIdxSLE + k] = problem_.exactSolution(geo.corner(k)); //the element to correctly picture discontinuities of the solution
exactPressure[elemIdxSLE + k] = problem_.exactSolution(
0.9999 * geo.corner(k) + 0.0001 * geo.center());
} }
//contribution of the basis function //contribution of the basis function
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment