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
5b22f525
Commit
5b22f525
authored
2 years ago
by
Porrmann, Maik
Browse files
Options
Downloads
Patches
Plain Diff
minor changes/ bugfixes for argyris
parent
b97a2780
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
+6
-7
6 additions, 7 deletions
dune/functions/functionspacebases/argyrisbasis.hh
with
6 additions
and
7 deletions
dune/functions/functionspacebases/argyrisbasis.hh
+
6
−
7
View file @
5b22f525
...
...
@@ -84,9 +84,7 @@ namespace Dune
{
if
(
element
.
geometry
().
affine
())
fillMatrix
(
Dune
::
referenceElement
<
double
,
2
>
(
GeometryTypes
::
simplex
(
2
)).
position
(
0
,
0
),
element
.
geometry
(),
elementInfo
);
// barycenter, because we need some value.
fillMatrix
(
element
.
geometry
(),
elementInfo
);
else
DUNE_THROW
(
Dune
::
NotImplemented
,
"Argyris Element is only implemented for affine transformations"
);
...
...
@@ -217,8 +215,8 @@ namespace Dune
mat_
.
endindices
();
}
template
<
class
LocalCoordinate
,
class
Element
>
void
fillMatrix
(
LocalCoordinate
const
&
xi
,
typename
Element
::
Geometry
const
&
geometry
,
template
<
class
Element
>
void
fillMatrix
(
typename
Element
::
Geometry
const
&
geometry
,
ElementInformation
<
Element
>
const
&
elementInfo
)
{
std
::
array
<
R
,
3
>
const
&
edgeOrientation
=
elementInfo
.
getEdgeOrientation
();
...
...
@@ -234,7 +232,8 @@ namespace Dune
// from the global normals/tangents normalize
// get local and global Tangents
auto
refElement
=
Dune
::
referenceElement
<
double
,
2
>
(
geometry
.
type
());
auto
refElement
=
Dune
::
referenceElement
<
typename
Element
::
Geometry
::
ctype
,
2
>
(
geometry
.
type
());
for
(
std
::
size_t
i
=
0
;
i
<
3
;
++
i
)
{
std
::
size_t
lower
=
(
i
==
2
)
?
1
:
0
;
...
...
@@ -855,7 +854,7 @@ namespace Dune
Dune
::
MultipleCodimMultipleGeomTypeMapper
<
GV
>
elementMapper_
;
std
::
vector
<
ElementInformation
>
elementInformation_
;
private
:
// helper methods
bool
linearIndependent
(
Dune
::
FieldVector
<
D
,
dim
>
a
,
Dune
::
FieldVector
<
D
,
dim
>
b
)
{
return
std
::
abs
(
a
.
dot
(
Dune
::
FieldVector
<
D
,
dim
>
{
-
b
[
1
],
b
[
0
]}))
>
1e-14
;
...
...
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