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
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
Core Modules
dune-istl
Commits
40911856
Commit
40911856
authored
9 years ago
by
Jö Fahlke
Browse files
Options
Downloads
Patches
Plain Diff
[SolverAbort] Exception to be thrown by solvers when they cannot continue.
parent
969fa8a4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!36
Abort CGSolver when the defect is invalid
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/istl/istlexception.hh
+7
-0
7 additions, 0 deletions
dune/istl/istlexception.hh
dune/istl/solver.hh
+6
-0
6 additions, 0 deletions
dune/istl/solver.hh
with
13 additions
and
0 deletions
dune/istl/istlexception.hh
+
7
−
0
View file @
40911856
...
@@ -33,6 +33,13 @@ namespace Dune {
...
@@ -33,6 +33,13 @@ namespace Dune {
:
public
BCRSMatrixError
:
public
BCRSMatrixError
{};
{};
//! Thrown when a solver aborts due to some problem.
/**
* Problems that may cause the solver to abort include a NaN detected during
* the convergence check (which may be caused by invalid input data).
*/
class
SolverAbort
:
public
ISTLError
{};
/** @} end documentation */
/** @} end documentation */
}
// end namespace
}
// end namespace
...
...
This diff is collapsed.
Click to expand it.
dune/istl/solver.hh
+
6
−
0
View file @
40911856
...
@@ -95,6 +95,9 @@ namespace Dune
...
@@ -95,6 +95,9 @@ namespace Dune
\param x The left hand side to store the result in.
\param x The left hand side to store the result in.
\param b The right hand side
\param b The right hand side
\param res Object to store the statistics about applying the operator.
\param res Object to store the statistics about applying the operator.
\throw SolverAbort When the solver detects a problem and cannot
continue
*/
*/
virtual
void
apply
(
X
&
x
,
Y
&
b
,
InverseOperatorResult
&
res
)
=
0
;
virtual
void
apply
(
X
&
x
,
Y
&
b
,
InverseOperatorResult
&
res
)
=
0
;
...
@@ -107,6 +110,9 @@ namespace Dune
...
@@ -107,6 +110,9 @@ namespace Dune
\param b The right hand side
\param b The right hand side
\param reduction The minimum defect reduction to achieve.
\param reduction The minimum defect reduction to achieve.
\param res Object to store the statistics about applying the operator.
\param res Object to store the statistics about applying the operator.
\throw SolverAbort When the solver detects a problem and cannot
continue
*/
*/
virtual
void
apply
(
X
&
x
,
Y
&
b
,
double
reduction
,
InverseOperatorResult
&
res
)
=
0
;
virtual
void
apply
(
X
&
x
,
Y
&
b
,
double
reduction
,
InverseOperatorResult
&
res
)
=
0
;
...
...
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