Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
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
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
dumux-repositories
dumux
Commits
59bc45cf
Commit
59bc45cf
authored
5 years ago
by
Timo Koch
Browse files
Options
Downloads
Patches
Plain Diff
[istlsolverbackend] set default preconditioner verbosity to 0
parent
9d849fa4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1845
Feature/istl solver factory
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dumux/linear/istlsolverfactorybackend.hh
+1
-0
1 addition, 0 deletions
dumux/linear/istlsolverfactorybackend.hh
dumux/linear/solver.hh
+11
-0
11 additions, 0 deletions
dumux/linear/solver.hh
with
12 additions
and
0 deletions
dumux/linear/istlsolverfactorybackend.hh
+
1
−
0
View file @
59bc45cf
...
@@ -131,6 +131,7 @@ public:
...
@@ -131,6 +131,7 @@ public:
params_
[
"verbose"
]
=
"0"
;
params_
[
"verbose"
]
=
"0"
;
params_
[
"preconditioner.iterations"
]
=
"1"
;
params_
[
"preconditioner.iterations"
]
=
"1"
;
params_
[
"preconditioner.relaxation"
]
=
"1.0"
;
params_
[
"preconditioner.relaxation"
]
=
"1.0"
;
params_
[
"preconditioner.verbosity"
]
=
"0"
;
}
}
const
Dune
::
InverseOperatorResult
&
result
()
const
const
Dune
::
InverseOperatorResult
&
result
()
const
...
...
This diff is collapsed.
Click to expand it.
dumux/linear/solver.hh
+
11
−
0
View file @
59bc45cf
...
@@ -48,6 +48,7 @@ public:
...
@@ -48,6 +48,7 @@ public:
* - LinearSolver.ResidualReduction the residual reduction threshold, i.e. stopping criterion
* - LinearSolver.ResidualReduction the residual reduction threshold, i.e. stopping criterion
* - LinearSolver.PreconditionerRelaxation precondition relaxation
* - LinearSolver.PreconditionerRelaxation precondition relaxation
* - LinearSolver.PreconditionerIterations the number of preconditioner iterations
* - LinearSolver.PreconditionerIterations the number of preconditioner iterations
* - LinearSolver.PreconditionerVerbosity the preconditioner verbosity level
*/
*/
LinearSolver
(
const
std
::
string
&
paramGroup
=
""
)
LinearSolver
(
const
std
::
string
&
paramGroup
=
""
)
:
paramGroup_
(
paramGroup
)
:
paramGroup_
(
paramGroup
)
...
@@ -57,6 +58,7 @@ public:
...
@@ -57,6 +58,7 @@ public:
residReduction_
=
getParamFromGroup
<
double
>
(
paramGroup
,
"LinearSolver.ResidualReduction"
,
1e-13
);
residReduction_
=
getParamFromGroup
<
double
>
(
paramGroup
,
"LinearSolver.ResidualReduction"
,
1e-13
);
relaxation_
=
getParamFromGroup
<
double
>
(
paramGroup
,
"LinearSolver.PreconditionerRelaxation"
,
1
);
relaxation_
=
getParamFromGroup
<
double
>
(
paramGroup
,
"LinearSolver.PreconditionerRelaxation"
,
1
);
precondIter_
=
getParamFromGroup
<
int
>
(
paramGroup
,
"LinearSolver.PreconditionerIterations"
,
1
);
precondIter_
=
getParamFromGroup
<
int
>
(
paramGroup
,
"LinearSolver.PreconditionerIterations"
,
1
);
precondVerbosity_
=
getParamFromGroup
<
int
>
(
paramGroup
,
"LinearSolver.PreconditionerVerbosity"
,
0
);
}
}
/*!
/*!
...
@@ -117,12 +119,21 @@ public:
...
@@ -117,12 +119,21 @@ public:
void
setPrecondIter
(
int
i
)
void
setPrecondIter
(
int
i
)
{
precondIter_
=
i
;
}
{
precondIter_
=
i
;
}
//! the preconditioner verbosity
int
precondVerbosity
()
const
{
return
precondVerbosity_
;
}
//! set the preconditioner verbosity
void
setPrecondVerbosity
(
int
verbosityLevel
)
{
precondVerbosity_
=
verbosityLevel
;
}
private
:
private
:
int
verbosity_
;
int
verbosity_
;
int
maxIter_
;
int
maxIter_
;
double
residReduction_
;
double
residReduction_
;
double
relaxation_
;
double
relaxation_
;
int
precondIter_
;
int
precondIter_
;
int
precondVerbosity_
;
const
std
::
string
paramGroup_
;
const
std
::
string
paramGroup_
;
};
};
...
...
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