Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-gfe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Sander, Oliver
dune-gfe
Commits
c7fdb79a
Commit
c7fdb79a
authored
9 years ago
by
Sander, Oliver
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup; use 'auto' a bit more frequently
parent
8ffaaf1e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/gfe/globalgeodesicfefunction.hh
+1
-1
1 addition, 1 deletion
dune/gfe/globalgeodesicfefunction.hh
dune/gfe/harmonicenergystiffness.hh
+3
-10
3 additions, 10 deletions
dune/gfe/harmonicenergystiffness.hh
with
4 additions
and
11 deletions
dune/gfe/globalgeodesicfefunction.hh
+
1
−
1
View file @
c7fdb79a
...
...
@@ -80,7 +80,7 @@ public:
out
=
0.0
;
//transform the gradient
const
Dune
::
FieldMatrix
<
double
,
gridDim
,
gridDim
>&
jacInvTrans
=
element
.
geometry
().
jacobianInverseTransposed
(
local
);
const
auto
jacInvTrans
=
element
.
geometry
().
jacobianInverseTransposed
(
local
);
for
(
size_t
k
=
0
;
k
<
refJac
.
N
();
k
++
)
jacInvTrans
.
umv
(
refJac
[
k
],
out
[
k
]);
...
...
This diff is collapsed.
Click to expand it.
dune/gfe/harmonicenergystiffness.hh
+
3
−
10
View file @
c7fdb79a
...
...
@@ -15,16 +15,12 @@ class HarmonicEnergyLocalStiffness
typedef
typename
Basis
::
GridView
GridView
;
typedef
typename
GridView
::
ctype
DT
;
typedef
typename
TargetSpace
::
ctype
RT
;
typedef
typename
GridView
::
template
Codim
<
0
>
::
Entity
Entity
;
// some other sizes
enum
{
gridDim
=
GridView
::
dimension
};
public
:
//! Dimension of a tangent space
enum
{
blocksize
=
TargetSpace
::
TangentVector
::
dimension
};
/** \brief Assemble the energy for a single element */
RT
energy
(
const
typename
Basis
::
LocalView
&
localView
,
const
std
::
vector
<
TargetSpace
>&
localSolution
)
const
override
;
...
...
@@ -37,8 +33,6 @@ HarmonicEnergyLocalStiffness<Basis, TargetSpace>::
energy
(
const
typename
Basis
::
LocalView
&
localView
,
const
std
::
vector
<
TargetSpace
>&
localSolution
)
const
{
typedef
typename
GridView
::
template
Codim
<
0
>
::
Entity
::
Geometry
Geometry
;
RT
energy
=
0
;
const
auto
&
localFiniteElement
=
localView
.
tree
().
finiteElement
();
...
...
@@ -50,8 +44,7 @@ energy(const typename Basis::LocalView& localView,
const
auto
element
=
localView
.
element
();
const
Dune
::
QuadratureRule
<
double
,
gridDim
>&
quad
=
Dune
::
QuadratureRules
<
double
,
gridDim
>::
rule
(
localFiniteElement
.
type
(),
quadOrder
);
const
auto
&
quad
=
Dune
::
QuadratureRules
<
double
,
gridDim
>::
rule
(
localFiniteElement
.
type
(),
quadOrder
);
for
(
size_t
pt
=
0
;
pt
<
quad
.
size
();
pt
++
)
{
...
...
@@ -60,12 +53,12 @@ energy(const typename Basis::LocalView& localView,
const
double
integrationElement
=
element
.
geometry
().
integrationElement
(
quadPos
);
const
typename
Geometry
::
JacobianInverseTransposed
&
jacobianInverseTransposed
=
element
.
geometry
().
jacobianInverseTransposed
(
quadPos
);
const
auto
jacobianInverseTransposed
=
element
.
geometry
().
jacobianInverseTransposed
(
quadPos
);
double
weight
=
quad
[
pt
].
weight
()
*
integrationElement
;
// The derivative of the local function defined on the reference element
typename
LocalGFEFunctionType
::
DerivativeType
referenceDerivative
=
localGeodesicFEFunction
.
evaluateDerivative
(
quadPos
);
auto
referenceDerivative
=
localGeodesicFEFunction
.
evaluateDerivative
(
quadPos
);
// The derivative of the function defined on the actual element
typename
LocalGFEFunctionType
::
DerivativeType
derivative
(
0
);
...
...
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