Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-tectonic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
podlesny
dune-tectonic
Commits
461c9f40
Commit
461c9f40
authored
10 years ago
by
Elias Pipping
Browse files
Options
Downloads
Patches
Plain Diff
[Cleanup] multigridStep: Rename: Solver -> Step
parent
9859588d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/fixedpointiterator.cc
+1
-1
1 addition, 1 deletion
src/fixedpointiterator.cc
src/sand-wedge.cc
+1
-1
1 addition, 1 deletion
src/sand-wedge.cc
src/solverfactory.cc
+3
-3
3 additions, 3 deletions
src/solverfactory.cc
src/solverfactory.hh
+3
-3
3 additions, 3 deletions
src/solverfactory.hh
with
8 additions
and
8 deletions
src/fixedpointiterator.cc
+
1
−
1
View file @
461c9f40
...
...
@@ -38,7 +38,7 @@ FixedPointIterator<Factory, StateUpdater, VelocityUpdater, ErrorNorm>::run(
std
::
shared_ptr
<
VelocityUpdater
>
velocityUpdater
,
Matrix
const
&
velocityMatrix
,
Vector
const
&
velocityRHS
,
Vector
&
velocityIterate
)
{
auto
multigridStep
=
factory_
.
getS
olver
();
auto
multigridStep
=
factory_
.
getS
tep
();
EnergyNorm
<
Matrix
,
Vector
>
energyNorm
(
velocityMatrix
);
LoopSolver
<
Vector
>
velocityProblemSolver
(
...
...
This diff is collapsed.
Click to expand it.
src/sand-wedge.cc
+
1
−
1
View file @
461c9f40
...
...
@@ -235,7 +235,7 @@ int main(int argc, char *argv[]) {
1.0
,
_matrix
,
zeroNonlinearity
,
_rhs
,
_x
);
typename
LinearFactory
::
BlockProblem
problem
(
parset
,
convexProblem
);
auto
multigridStep
=
factory
.
getS
olver
();
auto
multigridStep
=
factory
.
getS
tep
();
multigridStep
->
setProblem
(
_x
,
problem
);
LoopSolver
<
Vector
>
solver
(
multigridStep
.
get
(),
_localParset
.
get
<
size_t
>
(
"maximumIterations"
),
...
...
This diff is collapsed.
Click to expand it.
src/solverfactory.cc
+
3
−
3
View file @
461c9f40
...
...
@@ -22,7 +22,7 @@ SolverFactory<dim, BlockProblem, Grid>::SolverFactory(
Solver
::
QUIET
),
transferOperators
(
refinements
),
multigridStep
(
std
::
make_shared
<
S
olver
>
(
linearIterationStep
,
nonlinearSmoother
))
{
std
::
make_shared
<
S
tep
>
(
linearIterationStep
,
nonlinearSmoother
))
{
// linear iteration step
linearIterationStep
.
setMGType
(
parset
.
get
<
int
>
(
"linear.cycle"
),
parset
.
get
<
int
>
(
"linear.pre"
),
...
...
@@ -51,8 +51,8 @@ SolverFactory<dim, BlockProblem, Grid>::~SolverFactory() {
}
template
<
size_t
dim
,
class
BlockProblem
,
class
Grid
>
auto
SolverFactory
<
dim
,
BlockProblem
,
Grid
>::
getS
olver
()
->
std
::
shared_ptr
<
S
olver
>
{
auto
SolverFactory
<
dim
,
BlockProblem
,
Grid
>::
getS
tep
()
->
std
::
shared_ptr
<
S
tep
>
{
return
multigridStep
;
}
...
...
This diff is collapsed.
Click to expand it.
src/solverfactory.hh
+
3
−
3
View file @
461c9f40
...
...
@@ -26,7 +26,7 @@ class SolverFactory {
private:
using
NonlinearSmoother
=
GenericNonlinearGS
<
BlockProblem
>
;
using
S
olver
=
using
S
tep
=
TruncatedNonsmoothNewtonMultigrid
<
BlockProblem
,
NonlinearSmoother
>
;
public:
...
...
@@ -35,7 +35,7 @@ class SolverFactory {
~
SolverFactory
();
std
::
shared_ptr
<
S
olver
>
getS
olver
();
std
::
shared_ptr
<
S
tep
>
getS
tep
();
private:
TruncatedBlockGSStep
<
Matrix
,
Vector
>
linearBaseSolverStep
;
...
...
@@ -46,6 +46,6 @@ class SolverFactory {
MultigridStep
<
Matrix
,
Vector
>
linearIterationStep
;
std
::
vector
<
CompressedMultigridTransfer
<
Vector
>
*>
transferOperators
;
NonlinearSmoother
nonlinearSmoother
;
std
::
shared_ptr
<
S
olver
>
multigridStep
;
std
::
shared_ptr
<
S
tep
>
multigridStep
;
};
#endif
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