Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-istl
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Stephan Hilb
dune-istl
Commits
d37b7d94
Commit
d37b7d94
authored
8 years ago
by
René Heß
Browse files
Options
Downloads
Patches
Plain Diff
Remove deprecated constructors
According to git blame the last time these constructors were changed was in 2011.
parent
06fd3be6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/istl/paamg/amg.hh
+0
-91
0 additions, 91 deletions
dune/istl/paamg/amg.hh
with
0 additions
and
91 deletions
dune/istl/paamg/amg.hh
+
0
−
91
View file @
d37b7d94
...
...
@@ -95,28 +95,6 @@ namespace Dune
category
=
S
::
category
};
/**
* @brief Construct a new amg with a specific coarse solver.
* @param matrices The already set up matix hierarchy.
* @param coarseSolver The set up solver to use on the coarse
* grid, must match the coarse matrix in the matrix hierarchy.
* @param smootherArgs The arguments needed for thesmoother to use
* for pre and post smoothing
* @param gamma The number of subcycles. 1 for V-cycle, 2 for W-cycle.
* @param preSmoothingSteps The number of smoothing steps for premoothing.
* @param postSmoothingSteps The number of smoothing steps for postmoothing.
* @param additive Whether to use additive multigrid.
* @deprecated Use constructor
* AMG(const OperatorHierarchy&, CoarseSolver&, const SmootherArgs, const Parameters&)
* instead.
* All parameters can be set in the criterion!
*/
AMG
(
const
OperatorHierarchy
&
matrices
,
CoarseSolver
&
coarseSolver
,
const
SmootherArgs
&
smootherArgs
,
std
::
size_t
gamma
,
std
::
size_t
preSmoothingSteps
,
std
::
size_t
postSmoothingSteps
,
bool
additive
=
false
)
DUNE_DEPRECATED
;
/**
* @brief Construct a new amg with a specific coarse solver.
* @param matrices The already set up matix hierarchy.
...
...
@@ -129,33 +107,6 @@ namespace Dune
AMG
(
const
OperatorHierarchy
&
matrices
,
CoarseSolver
&
coarseSolver
,
const
SmootherArgs
&
smootherArgs
,
const
Parameters
&
parms
);
/**
* @brief Construct an AMG with an inexact coarse solver based on the smoother.
*
* As coarse solver a preconditioned CG method with the smoother as preconditioner
* will be used. The matrix hierarchy is built automatically.
* @param fineOperator The operator on the fine level.
* @param criterion The criterion describing the coarsening strategy. E. g. SymmetricCriterion
* or UnsymmetricCriterion.
* @param smootherArgs The arguments for constructing the smoothers.
* @param gamma 1 for V-cycle, 2 for W-cycle
* @param preSmoothingSteps The number of smoothing steps for premoothing.
* @param postSmoothingSteps The number of smoothing steps for postmoothing.
* @param additive Whether to use additive multigrid.
* @param pinfo The information about the parallel distribution of the data.
* @deprecated Use
* AMG(const Operator&, const C&, const SmootherArgs, const ParallelInformation)
* instead.
* All parameters can be set in the criterion!
*/
template
<
class
C
>
AMG
(
const
Operator
&
fineOperator
,
const
C
&
criterion
,
const
SmootherArgs
&
smootherArgs
,
std
::
size_t
gamma
,
std
::
size_t
preSmoothingSteps
,
std
::
size_t
postSmoothingSteps
,
bool
additive
=
false
,
const
ParallelInformation
&
pinfo
=
ParallelInformation
())
DUNE_DEPRECATED
;
/**
* @brief Construct an AMG with an inexact coarse solver based on the smoother.
*
...
...
@@ -358,24 +309,6 @@ namespace Dune
update_
=
new
Hierarchy
<
Domain
,
A
>
(
*
amg
.
update_
);
}
template
<
class
M
,
class
X
,
class
S
,
class
PI
,
class
A
>
AMG
<
M
,
X
,
S
,
PI
,
A
>::
AMG
(
const
OperatorHierarchy
&
matrices
,
CoarseSolver
&
coarseSolver
,
const
SmootherArgs
&
smootherArgs
,
std
::
size_t
gamma
,
std
::
size_t
preSmoothingSteps
,
std
::
size_t
postSmoothingSteps
,
bool
additive_
)
:
matrices_
(
&
matrices
),
smootherArgs_
(
smootherArgs
),
smoothers_
(
new
Hierarchy
<
Smoother
,
A
>
),
solver_
(
&
coarseSolver
),
rhs_
(),
lhs_
(),
update_
(),
scalarProduct_
(
0
),
gamma_
(
gamma
),
preSteps_
(
preSmoothingSteps
),
postSteps_
(
postSmoothingSteps
),
buildHierarchy_
(
false
),
additive
(
additive_
),
coarsesolverconverged
(
true
),
coarseSmoother_
(),
verbosity_
(
2
)
{
assert
(
matrices_
->
isBuilt
());
// build the necessary smoother hierarchies
matrices_
->
coarsenSmoother
(
*
smoothers_
,
smootherArgs_
);
}
template
<
class
M
,
class
X
,
class
S
,
class
PI
,
class
A
>
AMG
<
M
,
X
,
S
,
PI
,
A
>::
AMG
(
const
OperatorHierarchy
&
matrices
,
CoarseSolver
&
coarseSolver
,
const
SmootherArgs
&
smootherArgs
,
...
...
@@ -394,30 +327,6 @@ namespace Dune
matrices_
->
coarsenSmoother
(
*
smoothers_
,
smootherArgs_
);
}
template
<
class
M
,
class
X
,
class
S
,
class
PI
,
class
A
>
template
<
class
C
>
AMG
<
M
,
X
,
S
,
PI
,
A
>::
AMG
(
const
Operator
&
matrix
,
const
C
&
criterion
,
const
SmootherArgs
&
smootherArgs
,
std
::
size_t
gamma
,
std
::
size_t
preSmoothingSteps
,
std
::
size_t
postSmoothingSteps
,
bool
additive_
,
const
PI
&
pinfo
)
:
smootherArgs_
(
smootherArgs
),
smoothers_
(
new
Hierarchy
<
Smoother
,
A
>
),
solver_
(),
rhs_
(),
lhs_
(),
update_
(),
scalarProduct_
(),
gamma_
(
gamma
),
preSteps_
(
preSmoothingSteps
),
postSteps_
(
postSmoothingSteps
),
buildHierarchy_
(
true
),
additive
(
additive_
),
coarsesolverconverged
(
true
),
coarseSmoother_
(),
verbosity_
(
criterion
.
debugLevel
())
{
static_assert
(
static_cast
<
int
>
(
M
::
category
)
==
static_cast
<
int
>
(
S
::
category
),
"Matrix and Solver must match in terms of category!"
);
// TODO: reestablish compile time checks.
//static_assert(static_cast<int>(PI::category)==static_cast<int>(S::category),
// "Matrix and Solver must match in terms of category!");
createHierarchies
(
criterion
,
const_cast
<
Operator
&>
(
matrix
),
pinfo
);
}
template
<
class
M
,
class
X
,
class
S
,
class
PI
,
class
A
>
template
<
class
C
>
AMG
<
M
,
X
,
S
,
PI
,
A
>::
AMG
(
const
Operator
&
matrix
,
...
...
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