Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Aland, Sebastian
amdis
Commits
3225608e
Commit
3225608e
authored
Mar 12, 2012
by
Praetorius, Simon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fillElinfo with refinementPath implemented
parent
098221a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
AMDiS/src/ElInfo.cc
AMDiS/src/ElInfo.cc
+19
-0
AMDiS/src/ElInfo.h
AMDiS/src/ElInfo.h
+3
-0
No files found.
AMDiS/src/ElInfo.cc
View file @
3225608e
...
...
@@ -193,6 +193,25 @@ namespace AMDiS {
}
void
ElInfo
::
fillElInfo
(
const
MacroElement
*
mel
,
int
refinementPathLength
,
unsigned
long
refinementPath
)
{
std
::
vector
<
ElInfo
*>
elInfo
;
elInfo
.
push_back
(
mesh
->
createNewElInfo
());
elInfo
.
push_back
(
this
);
elInfo
[
0
]
->
setFillFlag
(
getFillFlag
());
elInfo
[
0
]
->
fillMacroInfo
(
mel
);
int
i
=
0
;
for
(;
i
<
refinementPathLength
;
i
++
)
{
elInfo
[(
i
+
1
)
%
2
]
->
fillElInfo
(
refinementPath
&
(
1
<<
i
),
elInfo
[
i
%
2
]);
}
if
(
i
%
2
==
0
)
*
this
=
*
elInfo
[
0
];
delete
elInfo
[
0
];
}
BoundaryType
ElInfo
::
getBoundary
(
GeoIndex
pos
,
int
i
)
{
static
int
indexOffset
[
3
][
3
]
=
{
...
...
AMDiS/src/ElInfo.h
View file @
3225608e
...
...
@@ -420,6 +420,9 @@ namespace AMDiS {
*/
virtual
void
fillElInfo
(
int
ichild
,
const
ElInfo
*
parentInfo
)
=
0
;
void
fillElInfo
(
const
MacroElement
*
mel
,
int
refinementPathLength
,
unsigned
long
refinementPath
);
/** \brief
* calculates the Jacobian of the barycentric coordinates on \element and stores
* the matrix in grd_lam. The return value of the function is the absolute
...
...
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