Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Backofen, Rainer
amdis
Commits
0aca9309
Commit
0aca9309
authored
Aug 29, 2008
by
Thomas Witkowski
Browse files
* Nothing important
parent
745701c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/Estimator.cc
View file @
0aca9309
...
...
@@ -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
);
}
...
...
AMDiS/src/ProblemVec.cc
View file @
0aca9309
...
...
@@ -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
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment