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
d4fcd896
Commit
d4fcd896
authored
7 years ago
by
Jonathan Youett
Committed by
Sander, Oliver
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Use correct field_type
parent
38134d0d
No related branches found
No related tags found
1 merge request
!10
Allow assembler to get temporaries
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/gfe/geodesicfeassembler.hh
+3
-2
3 additions, 2 deletions
dune/gfe/geodesicfeassembler.hh
with
3 additions
and
2 deletions
dune/gfe/geodesicfeassembler.hh
+
3
−
2
View file @
d4fcd896
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
template
<
class
Basis
,
class
TargetSpace
>
template
<
class
Basis
,
class
TargetSpace
>
class
GeodesicFEAssembler
{
class
GeodesicFEAssembler
{
using
field_type
=
typename
TargetSpace
::
field_type
;
typedef
typename
Basis
::
GridView
GridView
;
typedef
typename
Basis
::
GridView
GridView
;
using
LocalStiffness
=
LocalGeodesicFEStiffness
<
Basis
,
TargetSpace
>
;
using
LocalStiffness
=
LocalGeodesicFEStiffness
<
Basis
,
TargetSpace
>
;
...
@@ -78,7 +79,7 @@ public:
...
@@ -78,7 +79,7 @@ public:
* anyway to compute the Riemannian Hessian.
* anyway to compute the Riemannian Hessian.
*/
*/
virtual
void
assembleGradientAndHessian
(
const
std
::
vector
<
TargetSpace
>&
sol
,
virtual
void
assembleGradientAndHessian
(
const
std
::
vector
<
TargetSpace
>&
sol
,
Dune
::
BlockVector
<
Dune
::
FieldVector
<
doubl
e
,
blocksize
>
>&
gradient
,
Dune
::
BlockVector
<
Dune
::
FieldVector
<
field_typ
e
,
blocksize
>
>&
gradient
,
Dune
::
BCRSMatrix
<
MatrixBlock
>&
hessian
,
Dune
::
BCRSMatrix
<
MatrixBlock
>&
hessian
,
bool
computeOccupationPattern
=
true
)
const
;
bool
computeOccupationPattern
=
true
)
const
;
...
@@ -134,7 +135,7 @@ getNeighborsPerVertex(Dune::MatrixIndexSet& nb) const
...
@@ -134,7 +135,7 @@ getNeighborsPerVertex(Dune::MatrixIndexSet& nb) const
template
<
class
Basis
,
class
TargetSpace
>
template
<
class
Basis
,
class
TargetSpace
>
void
GeodesicFEAssembler
<
Basis
,
TargetSpace
>::
void
GeodesicFEAssembler
<
Basis
,
TargetSpace
>::
assembleGradientAndHessian
(
const
std
::
vector
<
TargetSpace
>&
sol
,
assembleGradientAndHessian
(
const
std
::
vector
<
TargetSpace
>&
sol
,
Dune
::
BlockVector
<
Dune
::
FieldVector
<
doubl
e
,
blocksize
>
>
&
gradient
,
Dune
::
BlockVector
<
Dune
::
FieldVector
<
field_typ
e
,
blocksize
>
>
&
gradient
,
Dune
::
BCRSMatrix
<
MatrixBlock
>&
hessian
,
Dune
::
BCRSMatrix
<
MatrixBlock
>&
hessian
,
bool
computeOccupationPattern
)
const
bool
computeOccupationPattern
)
const
{
{
...
...
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