Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Backofen, Rainer
amdis
Commits
96082079
Commit
96082079
authored
Jun 01, 2011
by
Backofen, Rainer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
break if Umfpack does not reach tolerance
parent
e27212ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
AMDiS/src/UmfPackSolver.h
AMDiS/src/UmfPackSolver.h
+4
-3
No files found.
AMDiS/src/UmfPackSolver.h
View file @
96082079
...
...
@@ -60,8 +60,9 @@ namespace AMDiS {
template
<
typename
Vector
>
int
solve
(
const
Matrix
&
A
,
Vector
&
x
,
Vector
&
b
)
{
if
(
!
solver
)
{
if
(
!
symmetric_strategy
)
FUNCNAME
(
"(UmfPackSolver.h)::solve()"
);
if
(
!
solver
)
{
if
(
!
symmetric_strategy
)
solver
=
new
mtl
::
matrix
::
umfpack
::
solver
<
matrix_type
>
(
A
);
else
solver
=
new
mtl
::
matrix
::
umfpack
::
solver
<
matrix_type
>
(
A
,
UMFPACK_STRATEGY_SYMMETRIC
);
...
...
@@ -84,7 +85,7 @@ namespace AMDiS {
oem
.
setErrorCode
(
code
);
std
::
cout
<<
"UmfPackSolver: ||b-Ax|| = "
<<
residual
<<
"
\n
"
;
if
(
residual
>
oem
.
getTolerance
())
{
WARNING
(
"Tolerance tol=%e could not be reached!
\n
"
,
oem
.
getTolerance
());
ERROR_EXIT
(
"Tolerance tol=%e could not be reached!
\n
Set tolerance by '->solver->tolerance:'
\n
"
,
oem
.
getTolerance
());
}
}
return
code
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment