Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-fufem
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
agnumpde
dune-fufem
Commits
873a5a38
Commit
873a5a38
authored
May 25, 2019
by
oliver.sander_at_tu-dresden.de
Browse files
Options
Downloads
Plain Diff
Merge branch 'make-compile-with-2.6' into 'master'
Make code compile with the 2.6 core modules See merge request
!52
parents
23bf63ad
ea0f9b85
Branches
Branches containing commit
No related tags found
1 merge request
!52
Make code compile with the 2.6 core modules
Pipeline
#19904
failed
Sep 6, 2019
Stage: test
Changes
2
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/fufem/functiontools/boundarydofs.hh
+10
-0
10 additions, 0 deletions
dune/fufem/functiontools/boundarydofs.hh
dune/fufem/globalintersectioniterator.hh
+10
-0
10 additions, 0 deletions
dune/fufem/globalintersectioniterator.hh
with
20 additions
and
0 deletions
dune/fufem/functiontools/boundarydofs.hh
+
10
−
0
View file @
873a5a38
...
@@ -35,10 +35,16 @@ void constructBoundaryDofs(const BoundaryPatch<GridView>& boundaryPatch,
...
@@ -35,10 +35,16 @@ void constructBoundaryDofs(const BoundaryPatch<GridView>& boundaryPatch,
boundaryDofs
.
unsetAll
();
boundaryDofs
.
unsetAll
();
auto
localView
=
basis
.
localView
();
auto
localView
=
basis
.
localView
();
#if DUNE_VERSION_LT(DUNE_FUNCTIONS,2,7)
auto
localIndexSet
=
basis
.
localIndexSet
();
#endif
for
(
auto
it
=
boundaryPatch
.
begin
();
it
!=
boundaryPatch
.
end
();
++
it
)
for
(
auto
it
=
boundaryPatch
.
begin
();
it
!=
boundaryPatch
.
end
();
++
it
)
{
{
localView
.
bind
(
it
->
inside
());
localView
.
bind
(
it
->
inside
());
#if DUNE_VERSION_LT(DUNE_FUNCTIONS,2,7)
localIndexSet
.
bind
(
localView
);
#endif
const
auto
&
localCoefficients
=
localView
.
tree
().
finiteElement
().
localCoefficients
();
const
auto
&
localCoefficients
=
localView
.
tree
().
finiteElement
().
localCoefficients
();
for
(
size_t
i
=
0
;
i
<
localCoefficients
.
size
();
i
++
)
for
(
size_t
i
=
0
;
i
<
localCoefficients
.
size
();
i
++
)
...
@@ -51,7 +57,11 @@ void constructBoundaryDofs(const BoundaryPatch<GridView>& boundaryPatch,
...
@@ -51,7 +57,11 @@ void constructBoundaryDofs(const BoundaryPatch<GridView>& boundaryPatch,
unsigned
int
codim
=
localCoefficients
.
localKey
(
i
).
codim
();
unsigned
int
codim
=
localCoefficients
.
localKey
(
i
).
codim
();
if
(
it
.
containsInsideSubentity
(
entity
,
codim
))
if
(
it
.
containsInsideSubentity
(
entity
,
codim
))
#if DUNE_VERSION_LT(DUNE_FUNCTIONS,2,7)
boundaryDofs
[
localIndexSet
.
index
(
i
)]
=
true
;
#else
boundaryDofs
[
localView
.
index
(
i
)]
=
true
;
boundaryDofs
[
localView
.
index
(
i
)]
=
true
;
#endif
}
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
dune/fufem/globalintersectioniterator.hh
+
10
−
0
View file @
873a5a38
...
@@ -2,9 +2,15 @@
...
@@ -2,9 +2,15 @@
#define GLOBAL_INTERSECTION_ITERATOR_HH
#define GLOBAL_INTERSECTION_ITERATOR_HH
#include
<dune/common/iteratorfacades.hh>
#include
<dune/common/iteratorfacades.hh>
#include
<dune/common/version.hh>
#include
<dune/geometry/referenceelements.hh>
#include
<dune/geometry/referenceelements.hh>
#if DUNE_VERSION_LT(DUNE_GEOMETRY,2,7)
#include
<dune/fufem/referenceelementhelper.hh>
#endif
/** \brief Helper struct that statically either derefences the iterator, if it returns a reference,
/** \brief Helper struct that statically either derefences the iterator, if it returns a reference,
* or otherwise return the 'member' intersection.
* or otherwise return the 'member' intersection.
*/
*/
...
@@ -211,8 +217,12 @@ public:
...
@@ -211,8 +217,12 @@ public:
bool
containsInsideSubentity
(
int
subEntity
,
int
codim
)
const
bool
containsInsideSubentity
(
int
subEntity
,
int
codim
)
const
{
{
#if DUNE_VERSION_LT(DUNE_GEOMETRY,2,7)
return
ReferenceElementHelper
<
double
,
dim
>::
subEntityContainsSubEntity
(
eIt_
->
type
(),
(
*
nIt_
)
->
indexInInside
(),
1
,
subEntity
,
codim
);
#else
auto
re
=
Dune
::
referenceElement
<
double
,
dim
>
(
eIt_
->
type
());
auto
re
=
Dune
::
referenceElement
<
double
,
dim
>
(
eIt_
->
type
());
return
re
.
subEntities
((
*
nIt_
)
->
indexInInside
(),
1
,
codim
).
contains
(
subEntity
);
return
re
.
subEntities
((
*
nIt_
)
->
indexInInside
(),
1
,
codim
).
contains
(
subEntity
);
#endif
}
}
protected
:
protected
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment