Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-c1elements
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maik Porrmann
dune-c1elements
Commits
68e43871
Commit
68e43871
authored
2 years ago
by
Porrmann, Maik
Browse files
Options
Downloads
Patches
Plain Diff
bugfix subIndex(facet,...)
parent
a0c8a61c
No related branches found
No related tags found
1 merge request
!3
update master to Releases/2.9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/functions/functionspacebases/argyrisbasis.hh
+15
-21
15 additions, 21 deletions
dune/functions/functionspacebases/argyrisbasis.hh
with
15 additions
and
21 deletions
dune/functions/functionspacebases/argyrisbasis.hh
+
15
−
21
View file @
68e43871
...
...
@@ -891,45 +891,39 @@ namespace Dune{
// interate over intersections
if
(
useTangentials_
)
{
for
(
const
auto
&
element
:
elements
(
gv
))
{
if
(
element
.
hasBoundaryIntersections
())
{
auto
elementIndex
=
elementMapper_
.
index
(
element
);
const
auto
&
refElement
=
referenceElement
(
element
);
for
(
const
auto
&
intersection
:
intersections
(
gv
,
element
))
{
// fill vertex Data with linear independent tangentials
if
(
intersection
.
boundary
())
{
auto
facet
=
intersection
.
inside
().
template
subEntity
<
1
>(
intersection
.
indexInInside
());
auto
startIndex
=
indexSet
.
subIndex
(
facet
,
0
,
dim
);
auto
endIndex
=
indexSet
.
subIndex
(
facet
,
1
,
dim
);
if
(
tangentialMap_
)
{
setVertexData
(
directionPerVertex
[
startIndex
],
tangentialMap_
(
facet
.
geometry
().
corner
(
0
)),
elementIndex
);
setVertexData
(
directionPerVertex
[
endIndex
],
tangentialMap_
(
facet
.
geometry
().
corner
(
1
)),
elementIndex
);
}
else
{
auto
tangential
=
intersection
.
geometry
().
corner
(
1
)
-
intersection
.
geometry
().
corner
(
0
);
setVertexData
(
directionPerVertex
[
startIndex
],
tangential
,
elementIndex
);
setVertexData
(
directionPerVertex
[
endIndex
],
tangential
,
elementIndex
);
}
auto
vertexIterator
=
refElement
.
subEntities
(
intersection
.
indexInInside
(),
1
,
2
).
begin
();
auto
startIndex
=
indexSet
.
subIndex
(
element
,
*
vertexIterator
,
2
);
auto
endIndex
=
indexSet
.
subIndex
(
element
,
*++
vertexIterator
,
2
);
auto
tangential
=
intersection
.
geometry
().
corner
(
1
)
-
intersection
.
geometry
().
corner
(
0
);
setVertexData
(
directionPerVertex
[
startIndex
],
tangential
,
elementIndex
);
setVertexData
(
directionPerVertex
[
endIndex
],
tangential
,
elementIndex
);
}
// inner dofs, keep global axes
}
}
}
if
(
!
sequentialSetup
)
{
// communicate vertex information Information
VertexDataHandle
dataHandle
(
indexSet
,
directionPerVertex
);
gv
.
communicate
(
dataHandle
,
All_All_Interface
,
ForwardCommunication
);
}
// iterate over vector and set the remaining directions to normals
for
(
auto
&
[
dir
,
setTangential
,
indices
]
:
directionPerVertex
)
{
if
(
setTangential
[
2
])
// if first is tangential
...
...
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