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
d48257d1
Commit
d48257d1
authored
Nov 07, 2020
by
Praetorius, Simon
Browse files
Merge branch 'issue/marker_referenceelement' into 'master'
change referenceElement in Marker See merge request
!235
parents
b41c2725
a3650df1
Changes
1
Hide whitespace changes
Inline
Side-by-side
amdis/Marker.inc.hpp
View file @
d48257d1
...
...
@@ -282,11 +282,10 @@ Flag GridFunctionMarker<Grid, PreGridFct>::markGrid(AdaptInfo& adaptInfo)
for
(
auto
const
&
e
:
Dune
::
elements
(
this
->
grid_
->
leafGridView
()))
{
localFct
.
bind
(
e
);
int
currentLevel
=
e
.
level
();
auto
geo
=
e
.
geometry
();
auto
const
&
ref
=
Dune
::
referenceElement
(
geo
);
auto
refElem
=
Dune
::
referenceElement
<
typename
Grid
::
ctype
,
Grid
::
dimension
>
(
e
.
type
());
// evaluate in the center of the element
int
targetLevel
=
int
(
std
::
round
(
localFct
(
ref
.
position
(
0
,
0
))));
int
targetLevel
=
int
(
std
::
round
(
localFct
(
ref
Elem
.
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