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
6c408fc8
Commit
6c408fc8
authored
5 years ago
by
Lisa Julia Nebel
Browse files
Options
Downloads
Patches
Plain Diff
Use std::make_shared to create the BaseSolver of the Trustregion Algorithm
parent
602a0fea
No related branches found
No related tags found
1 merge request
!22
Use DOFs from parmg in P1- and P2-Mapper
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/gfe/riemanniantrsolver.cc
+10
-5
10 additions, 5 deletions
dune/gfe/riemanniantrsolver.cc
with
10 additions
and
5 deletions
dune/gfe/riemanniantrsolver.cc
+
10
−
5
View file @
6c408fc8
...
...
@@ -78,12 +78,17 @@ setup(const GridType& grid,
QuadraticIPOptSolver
<
MatrixType
,
CorrectionType
>
baseSolver
;
baseSolver
.
setSolverParameter
(
baseTolerance
,
100
,
NumProc
::
QUIET
);
#else
// First create a Gauss-seidel base solver
auto
baseSolverStep
=
std
::
make_shared
<
TrustRegionGSStep
<
MatrixType
,
CorrectionType
>>
();
// Hack: the two-norm may not scale all that well, but it is fast!
::
LoopSolver
<
CorrectionType
>
baseSolver
(
TrustRegionGSStep
<
MatrixType
,
CorrectionType
>
{},
baseIterations
,
baseTolerance
,
TwoNorm
<
CorrectionType
>
{},
Solver
::
QUIET
);
auto
baseNorm
=
std
::
make_shared
<
TwoNorm
<
CorrectionType
>>
();
auto
baseSolver
=
std
::
make_shared
<::
LoopSolver
<
CorrectionType
>>
(
baseSolverStep
,
baseIterations
,
baseTolerance
,
baseNorm
,
Solver
::
QUIET
);
#endif
#if HAVE_MPI
// Transfer all Dirichlet data to the master processor
...
...
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