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
amdis
amdis-core
Commits
b2970767
Commit
b2970767
authored
Aug 28, 2019
by
Praetorius, Simon
Browse files
evaluate marker-function only on the barycenter of the element
parent
f5c04c79
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/amdis/Marker.inc.hpp
View file @
b2970767
...
...
@@ -284,11 +284,10 @@ Flag GridFunctionMarker<Grid, PreGridFct>::markGrid(AdaptInfo& adaptInfo)
int
currentLevel
=
e
.
level
();
auto
geo
=
e
.
geometry
();
auto
const
&
ref
=
Dune
::
referenceElement
(
geo
);
int
targetLevel
=
0
;
int
codim
=
ref
.
dimension
;
for
(
int
i
=
0
;
i
<
ref
.
size
(
codim
);
i
++
)
targetLevel
=
std
::
max
(
targetLevel
,
int
(
std
::
round
(
localFct
(
ref
.
position
(
i
,
codim
)
))));
// evaluate in the center of the element
int
targetLevel
=
int
(
std
::
round
(
localFct
(
ref
.
position
(
0
,
0
))));
int
m
=
((((
targetLevel
>
currentLevel
)
&&
(
currentLevel
<
this
->
maxRefineLevel_
))
||
(
currentLevel
<
this
->
minRefineLevel_
))
...
...
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