Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Backofen, Rainer
amdis
Commits
6058784f
Commit
6058784f
authored
Aug 03, 2010
by
Thomas Witkowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New debug functions.
parent
0f359786
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
AMDiS/src/Debug.cc
AMDiS/src/Debug.cc
+15
-0
AMDiS/src/Debug.h
AMDiS/src/Debug.h
+2
-0
No files found.
AMDiS/src/Debug.cc
View file @
6058784f
...
...
@@ -195,6 +195,21 @@ namespace AMDiS {
}
Element
*
getElement
(
Mesh
*
mesh
,
int
elIndex
)
{
TraverseStack
stack
;
ElInfo
*
elInfo
=
stack
.
traverseFirst
(
mesh
,
-
1
,
Mesh
::
CALL_EVERY_EL_PREORDER
);
while
(
elInfo
)
{
if
(
elInfo
->
getElement
()
->
getIndex
()
==
elIndex
)
return
elInfo
->
getElement
();
elInfo
=
stack
.
traverseNext
(
elInfo
);
}
return
NULL
;
}
Element
*
getParentElement
(
Mesh
*
mesh
,
int
elIndex
)
{
TraverseStack
stack
;
...
...
AMDiS/src/Debug.h
View file @
6058784f
...
...
@@ -90,6 +90,8 @@ namespace AMDiS {
Element
*
getParentElement
(
Mesh
*
mesh
,
int
elIndex
);
Element
*
getElement
(
Mesh
*
mesh
,
int
elIndex
);
void
printElementInfo
(
Element
*
el
);
void
printInfoByDof
(
FiniteElemSpace
*
feSpace
,
DegreeOfFreedom
dof
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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