Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iwr
amdis
Commits
4a775f34
Commit
4a775f34
authored
Aug 28, 2008
by
Thomas Witkowski
Browse files
* Small Marker update
parent
99d00627
Changes
1
Show whitespace changes
Inline
Side-by-side
AMDiS/src/Marker.cc
View file @
4a775f34
...
...
@@ -49,7 +49,9 @@ namespace AMDiS {
double
lError
=
el
->
getEstimation
(
row
);
if
(
adaptInfo
->
isRefinementAllowed
(
row
==
-
1
?
0
:
row
)
&&
lError
>
markRLimit
)
{
if
((
maxRefineLevel
==
-
1
)
||
(
static_cast
<
int
>
(
elInfo
->
getLevel
())
<
maxRefineLevel
))
{
setMark
(
el
,
adaptInfo
->
getRefineBisections
(
row
==
-
1
?
0
:
row
));
}
}
else
{
if
(
adaptInfo
->
isCoarseningAllowed
(
row
==
-
1
?
0
:
row
)
&&
lError
<=
markCLimit
)
{
if
(
!
el
->
getElementData
()
->
getElementData
(
COARSENABLE
)
||
...
...
@@ -72,10 +74,7 @@ namespace AMDiS {
ElInfo
*
elInfo
=
NULL
;
elInfo
=
stack
.
traverseFirst
(
mesh
,
-
1
,
Mesh
::
CALL_LEAF_EL
);
while
(
elInfo
)
{
if
((
maxRefineLevel
>
-
1
)
&&
(
static_cast
<
int
>
(
elInfo
->
getLevel
())
<
maxRefineLevel
))
{
markElement
(
adaptInfo
,
elInfo
);
}
elInfo
=
stack
.
traverseNext
(
elInfo
);
}
...
...
Write
Preview
Supports
Markdown
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