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
d8845fd8
Commit
d8845fd8
authored
3 years ago
by
Lisa Julia Nebel
Browse files
Options
Downloads
Patches
Plain Diff
Add the option to use the Riemannian Proximal Newton solver also for problems with dim = dimwold
parent
7d435278
No related branches found
No related tags found
1 merge request
!81
Fix error in surfacecosseratenergy
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/cosserat-continuum.cc
+15
-0
15 additions, 0 deletions
src/cosserat-continuum.cc
with
15 additions
and
0 deletions
src/cosserat-continuum.cc
+
15
−
0
View file @
d8845fd8
...
...
@@ -501,6 +501,7 @@ int main (int argc, char *argv[]) try
using
GFEAssemblerWrapper
=
Dune
::
GFE
::
GeodesicFEAssemblerWrapper
<
CompositeBasis
,
DeformationFEBasis
,
TargetSpace
,
RealTuple
<
double
,
3
>
,
Rotation
<
double
,
3
>>
;
GFEAssemblerWrapper
assembler
(
&
mixedAssembler
,
deformationFEBasis
);
if
(
parameterSet
.
get
<
std
::
string
>
(
"solvertype"
,
"trustRegion"
)
==
"trustRegion"
)
{
RiemannianTrustRegionSolver
<
DeformationFEBasis
,
TargetSpace
,
GFEAssemblerWrapper
>
solver
;
solver
.
setup
(
*
grid
,
&
assembler
,
...
...
@@ -520,6 +521,20 @@ int main (int argc, char *argv[]) try
solver
.
setInitialIterate
(
xTargetSpace
);
solver
.
solve
();
xTargetSpace
=
solver
.
getSol
();
}
else
{
RiemannianProximalNewtonSolver
<
DeformationFEBasis
,
TargetSpace
,
GFEAssemblerWrapper
>
solver
;
solver
.
setup
(
*
grid
,
&
assembler
,
xTargetSpace
,
dirichletDofsTargetSpace
,
tolerance
,
maxSolverSteps
,
initialRegularization
,
instrumented
);
solver
.
setInitialIterate
(
xTargetSpace
);
solver
.
solve
();
xTargetSpace
=
solver
.
getSol
();
}
for
(
int
i
=
0
;
i
<
xTargetSpace
.
size
();
i
++
)
{
x
[
_0
][
i
]
=
xTargetSpace
[
i
].
r
;
x
[
_1
][
i
]
=
xTargetSpace
[
i
].
q
;
...
...
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