Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
amdis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
iwr
amdis
Commits
96082079
Commit
96082079
authored
13 years ago
by
Backofen, Rainer
Browse files
Options
Downloads
Patches
Plain Diff
break if Umfpack does not reach tolerance
parent
e27212ed
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
AMDiS/src/UmfPackSolver.h
+4
-3
4 additions, 3 deletions
AMDiS/src/UmfPackSolver.h
with
4 additions
and
3 deletions
AMDiS/src/UmfPackSolver.h
+
4
−
3
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
;
...
...
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