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
6badfc0e
Commit
6badfc0e
authored
2 years ago
by
Porrmann, Maik
Browse files
Options
Downloads
Patches
Plain Diff
Bugfix clamped BC
parent
1b8f7915
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/functions/functionspacebases/argyrisbasis.hh
+15
-3
15 additions, 3 deletions
dune/functions/functionspacebases/argyrisbasis.hh
with
15 additions
and
3 deletions
dune/functions/functionspacebases/argyrisbasis.hh
+
15
−
3
View file @
6badfc0e
...
...
@@ -153,10 +153,10 @@ namespace Dune
return
true
;
else
if
(
localKey
.
index
()
==
3
)
// first direction, second derivative, clamped if
// tangential or normal to this element
return
isTangential
(
localKey
.
subEntity
(),
0
)
||
isNormal
(
localKey
.
subEntity
(),
0
);
return
isTangential
(
localKey
.
subEntity
(),
0
);
else
if
(
localKey
.
index
()
==
5
)
// second direction, second derivative, clamped if
// tangential or normal to this element
return
isTangential
(
localKey
.
subEntity
(),
1
)
||
isNormal
(
localKey
.
subEntity
(),
1
);
return
isTangential
(
localKey
.
subEntity
(),
1
);
else
// cross derivative, always clamped
return
true
;
}
...
...
@@ -930,7 +930,19 @@ namespace Dune
if
(
setTangential
[
2
])
// if first is tangential
{
if
(
setTangential
[
3
])
continue
;
// both are tangetials, i.e. vertex is corner
// both are tangetials, i.e. vertex is corner
{
// check if orthogonal
if
(
dir
[
0
].
dot
(
dir
[
1
])
<
1e-14
)
{
// direction is normal to all elements that other direction is tangential to
auto
lenInd_1
=
indices
[
1
].
size
();
for
(
auto
const
&
index
:
indices
[
0
])
indices
[
1
].
push_back
(
index
);
for
(
std
::
size_t
i
=
0
;
i
<
lenInd_1
;
++
i
)
indices
[
0
].
push_back
(
indices
[
1
][
i
]);
}
}
else
// straight boundary segment
{
// set second direction normal to first
...
...
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