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
47090a35
Commit
47090a35
authored
Jun 06, 2019
by
Praetorius, Simon
Browse files
do not overwrite dirichlet node classification when iterating over intersections
parent
c2cb20a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/amdis/DirichletBC.inc.hpp
View file @
47090a35
...
...
@@ -20,8 +20,9 @@ init(RB const& rowBasis, CB const& colBasis)
using
LV
=
typename
CB
::
LocalView
;
using
IS
=
typename
CB
::
GridView
::
Intersection
;
dirichletNodes_
.
resize
(
colBasis
.
dimension
());
std
::
fill
(
dirichletNodes_
.
begin
(),
dirichletNodes_
.
end
(),
false
);
forEachBoundaryDOF
(
colBasis
,
[
&
](
int
localIndex
,
LV
const
&
localView
,
IS
const
&
intersection
)
{
dirichletNodes_
[
localView
.
index
(
localIndex
)]
=
onBoundary
(
intersection
);
dirichletNodes_
[
localView
.
index
(
localIndex
)]
=
dirichletNodes_
[
localView
.
index
(
localIndex
)]
||
onBoundary
(
intersection
);
});
}
...
...
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