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
9a71c34d
Commit
9a71c34d
authored
16 years ago
by
Oliver Sander
Committed by
sander@PCPOOL.MI.FU-BERLIN.DE
16 years ago
Browse files
Options
Downloads
Patches
Plain Diff
remove several multigrid-specific data members, which were not even used anyways
[[Imported from SVN: r4104]]
parent
6f8aa356
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/riemanniantrsolver.cc
+10
-15
10 additions, 15 deletions
src/riemanniantrsolver.cc
src/riemanniantrsolver.hh
+2
-16
2 additions, 16 deletions
src/riemanniantrsolver.hh
with
12 additions
and
31 deletions
src/riemanniantrsolver.cc
+
10
−
15
View file @
9a71c34d
...
...
@@ -44,13 +44,8 @@ setup(const GridType& grid,
this
->
tolerance_
=
tolerance
;
maxTrustRegionSteps_
=
maxTrustRegionSteps
;
initialTrustRegionRadius_
=
initialTrustRegionRadius
;
multigridIterations_
=
multigridIterations
;
qpTolerance_
=
mgTolerance
;
mu_
=
mu
;
nu1_
=
nu1
;
nu2_
=
nu2
;
baseIt_
=
baseIterations
;
baseTolerance_
=
baseTolerance
;
innerIterations_
=
multigridIterations
;
innerTolerance_
=
mgTolerance
;
instrumented_
=
instrumented
;
int
numLevels
=
grid_
->
maxLevel
()
+
1
;
...
...
@@ -65,8 +60,8 @@ setup(const GridType& grid,
EnergyNorm
<
MatrixType
,
CorrectionType
>*
baseEnergyNorm
=
new
EnergyNorm
<
MatrixType
,
CorrectionType
>
(
*
baseSolverStep
);
::
LoopSolver
<
CorrectionType
>*
baseSolver
=
new
::
LoopSolver
<
CorrectionType
>
(
baseSolverStep
,
baseIt
_
,
baseTolerance
_
,
baseIt
erations
,
baseTolerance
,
baseEnergyNorm
,
Solver
::
QUIET
);
...
...
@@ -76,7 +71,7 @@ setup(const GridType& grid,
MonotoneMGStep
<
MatrixType
,
CorrectionType
>*
mmgStep
=
new
MonotoneMGStep
<
MatrixType
,
CorrectionType
>
(
numLevels
);
mmgStep
->
setMGType
(
mu
_
,
nu1
_
,
nu2
_
);
mmgStep
->
setMGType
(
mu
,
nu1
,
nu2
);
mmgStep
->
ignoreNodes_
=
&
dirichletNodes
;
mmgStep
->
basesolver_
=
baseSolver
;
mmgStep
->
presmoother_
=
presmoother
;
...
...
@@ -101,10 +96,10 @@ setup(const GridType& grid,
h1SemiNorm_
=
new
H1SemiNorm
<
CorrectionType
>
(
**
A
);
innerSolver_
=
new
::
LoopSolver
<
CorrectionType
>
(
mmgStep
,
multigrid
Iterations_
,
qp
Tolerance_
,
h1SemiNorm_
,
Solver
::
QUIET
);
inner
Iterations_
,
inner
Tolerance_
,
h1SemiNorm_
,
Solver
::
QUIET
);
// Write all intermediate solutions, if requested
if
(
instrumented_
...
...
@@ -240,7 +235,7 @@ void RiemannianTrustRegionSolver<GridType,TargetSpace>::solve()
// Compute the energy norm
oldError
=
h1SemiNorm_
->
operator
()(
exactSolution
);
for
(
int
j
=
0
;
j
<
multigrid
Iterations_
;
j
++
)
{
for
(
int
j
=
0
;
j
<
inner
Iterations_
;
j
++
)
{
// read iteration from file
CorrectionType
intermediateSol
(
grid_
->
size
(
1
));
...
...
This diff is collapsed.
Click to expand it.
src/riemanniantrsolver.hh
+
2
−
16
View file @
9a71c34d
...
...
@@ -79,25 +79,11 @@ protected:
/** \brief Maximum number of trust-region steps */
int
maxTrustRegionSteps_
;
/** \brief Maximum number of iterations of the multigrid basesolver */
int
baseIt_
;
double
baseTolerance_
;
/** \brief Number of coarse multigrid iterations (1 for a V-cycle, 2 for a W-cycle) */
int
mu_
;
/** \brief Number of multigrid presmoothing steps */
int
nu1_
;
/** \brief Number of multigrid postsmoothing steps */
int
nu2_
;
/** \brief Maximum number of multigrid iterations */
int
multigrid
Iterations_
;
int
inner
Iterations_
;
/** \brief Error tolerance of the multigrid QP solver */
double
qp
Tolerance_
;
double
inner
Tolerance_
;
/** \brief Hessian matrix */
std
::
auto_ptr
<
MatrixType
>
hessianMatrix_
;
...
...
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