Skip to content
Snippets Groups Projects
Commit 0aca9309 authored by Thomas Witkowski's avatar Thomas Witkowski
Browse files

* Nothing important

parent 745701c4
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,6 @@ namespace AMDiS {
TraverseStack stack;
ElInfo *elInfo = stack.traverseFirst(mesh, -1, traverseFlag);
while (elInfo) {
std::cout << elInfo->getElement()->getIndex() << std::endl;
estimateElement(elInfo);
elInfo = stack.traverseNext(elInfo);
}
......
......@@ -552,9 +552,12 @@ namespace AMDiS {
for (int i = 0; i < nComponents; i++) {
DOFVector<double> *tmp = NEW DOFVector<double>(componentSpaces[i], "tmp");
tmp->interpol(exactSolutionFcts[i]);
double t = tmp->max();
*tmp -= *(solution_->getDOFVector(i));
double l2Error = tmp->L2Norm();
double maxError = tmp->max() / t;
MSG("L2 error = %.8e\n", l2Error);
MSG("Max error = %.8e\n", maxError);
DELETE tmp;
}
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment