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
Merge requests
!52
Enhancements
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Enhancements
lnebel/dune-gfe:enhancements
into
master
Overview
3
Commits
6
Pipelines
2
Changes
1
Merged
Nebel, Lisa Julia
requested to merge
lnebel/dune-gfe:enhancements
into
master
4 years ago
Overview
3
Commits
6
Pipelines
2
Changes
1
Expand
Add random access operator and -= operator to RealTuple
Make the Assembler a template parameter in the RiemannianTRSolver and the RiemannianPNSolver
Use the rank as the ADOL-C tape number (mixedlocalgfeadolcstiffness)
Wrap energy calculation and solve-call in the Mixed-Riemannian-TR solver in a try-catch statement
Close the ADOL-C tape even if the energy calculation throws an error in mixedlocalgfeadolcstiffness
Edited
4 years ago
by
Nebel, Lisa Julia
0
0
Merge request reports
Viewing commit
70208025
Prev
Next
Show latest version
1 file
+
16
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
70208025
Add random access operator and -= operator to RealTuple
· 70208025
Lisa Julia Nebel
authored
4 years ago
dune/gfe/realtuple.hh
+
16
−
0
Options
@@ -66,6 +66,17 @@ public:
return
*
this
;
}
RealTuple
&
operator
-=
(
const
Dune
::
FieldVector
<
T
,
N
>&
other
)
{
data_
-=
other
;
return
*
this
;
}
template
<
class
T2
>
RealTuple
&
operator
-=
(
const
RealTuple
<
T2
,
N
>&
other
)
{
data_
-=
other
.
data_
;
return
*
this
;
}
/** \brief Assigment from RealTuple with different type -- used for automatic differentiation with ADOL-C */
template
<
class
T2
>
RealTuple
&
operator
<<=
(
const
RealTuple
<
T2
,
N
>&
other
)
{
@@ -74,6 +85,11 @@ public:
return
*
this
;
}
/** \brief Const random-access operator*/
T
operator
[]
(
const
size_t
indexVariable
)
const
{
return
data_
[
indexVariable
];
}
/** \brief Rebind the RealTuple to another coordinate type */
template
<
class
U
>
struct
rebind
Loading