Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Markus Holzer
waLBerla
Commits
b0cde5d3
Commit
b0cde5d3
authored
Apr 10, 2019
by
Michael Kuron
Browse files
switch BoundaryHandlingCollection to std::tuple
parent
7334c6f3
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
src/boundary/BoundaryHandling.h
View file @
b0cde5d3
...
...
@@ -2456,7 +2456,7 @@ template< typename BoundariesTuple, int N >
inline
typename
std
::
enable_if
<
(
N
!=-
1
),
BoundaryUID
>::
type
BoundaryHandling
<
FlagField_T
,
Stencil
,
Boundaries
...
>::
getBoundaryUID
(
const
BoundariesTuple
&
boundaryConditions
,
const
flag_t
flag
)
const
{
auto
&
boundaryCondition
=
std
::
get
<
N
>
(
boundaryConditions
);
const
auto
&
boundaryCondition
=
std
::
get
<
N
>
(
boundaryConditions
);
if
(
(
boundaryCondition
.
getMask
()
&
flag
)
==
flag
)
{
...
...
@@ -2508,7 +2508,7 @@ inline typename std::enable_if<(N!=-1), typename BoundaryHandling< FlagField_T,
BoundaryHandling
<
FlagField_T
,
Stencil
,
Boundaries
...
>::
getBoundaryMask
(
const
BoundariesTuple
&
boundaryConditions
,
const
BoundaryUID
&
uid
)
const
{
auto
&
boundaryCondition
=
std
::
get
<
N
>
(
boundaryConditions
);
const
auto
&
boundaryCondition
=
std
::
get
<
N
>
(
boundaryConditions
);
if
(
boundaryCondition
.
getUID
()
==
uid
)
return
boundaryCondition
.
getMask
();
...
...
src/boundary/BoundaryHandlingCollection.h
View file @
b0cde5d3
This diff is collapsed.
Click to expand it.
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