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
196296e5
Commit
196296e5
authored
Mar 25, 2019
by
Praetorius, Simon
Browse files
boundary-manager traverse over leafgridview
parent
557efb43
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/amdis/BoundaryManager.hpp
View file @
196296e5
...
...
@@ -70,7 +70,7 @@ namespace AMDiS
/// Set boundary ids [left,right, front,back, bottom,top] for cube domains
void
setBoxBoundary
(
std
::
array
<
BoundaryType
,
2
*
dow
>
const
&
ids
)
{
auto
gv
=
grid_
->
le
vel
GridView
(
0
);
auto
gv
=
grid_
->
le
af
GridView
();
for
(
auto
const
&
e
:
elements
(
gv
))
{
for
(
auto
const
&
segment
:
intersections
(
gv
,
e
))
{
...
...
@@ -96,7 +96,7 @@ namespace AMDiS
REQUIRES
(
Concepts
::
Functor
<
Indicator
,
int
(
Domain
)>)
>
void
setIndicator
(
Indicator
const
&
indicator
)
{
auto
gv
=
grid_
->
le
vel
GridView
(
0
);
auto
gv
=
grid_
->
le
af
GridView
();
for
(
auto
const
&
e
:
elements
(
gv
))
{
for
(
auto
const
&
segment
:
intersections
(
gv
,
e
))
{
...
...
@@ -115,7 +115,7 @@ namespace AMDiS
REQUIRES
(
Concepts
::
Functor
<
Predicate
,
bool
(
Domain
)>)
>
void
setPredicate
(
Predicate
const
&
pred
,
BoundaryType
id
)
{
auto
gv
=
grid_
->
le
vel
GridView
(
0
);
auto
gv
=
grid_
->
le
af
GridView
();
for
(
auto
const
&
e
:
elements
(
gv
))
{
for
(
auto
const
&
segment
:
intersections
(
gv
,
e
))
{
...
...
@@ -139,7 +139,7 @@ namespace AMDiS
if
(
!
Dune
::
Std
::
is_detected
<
HasBoundaryId
,
Segment
>::
value
)
return
;
auto
gv
=
grid_
->
le
vel
GridView
(
0
);
auto
gv
=
grid_
->
le
af
GridView
();
for
(
auto
const
&
e
:
elements
(
gv
))
{
for
(
auto
const
&
segment
:
intersections
(
gv
,
e
))
{
...
...
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