Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
spm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
solverstack
spm
Commits
beaaab4d
Commit
beaaab4d
authored
7 years ago
by
Mathieu Faverge
Browse files
Options
Downloads
Patches
Plain Diff
Return 0 or 1 to detect failure
parent
aa44b11f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
spm.c
+3
-2
3 additions, 2 deletions
spm.c
z_spm_genrhs.c
+5
-5
5 additions, 5 deletions
z_spm_genrhs.c
with
8 additions
and
7 deletions
spm.c
+
3
−
2
View file @
beaaab4d
...
...
@@ -1237,8 +1237,9 @@ spmGenRHS( pastix_rhstype_t type, pastix_int_t nrhs,
*
*******************************************************************************
*
* @retval PASTIX_SUCCESS if the b vector has been computed successfully,
* @retval PASTIX_ERR_BADPARAMETER otherwise.
* @retval PASTIX_SUCCESS if the tests are succesfull
* @retval PASTIX_ERR_BADPARAMETER if the input matrix is incorrect
* @retval 1, if one of the test failed
*
*******************************************************************************/
int
...
...
This diff is collapsed.
Click to expand it.
z_spm_genrhs.c
+
5
−
5
View file @
beaaab4d
...
...
@@ -353,8 +353,8 @@ z_spmGenRHS( pastix_rhstype_t type, int nrhs,
*
*******************************************************************************
*
* @retval PASTIX_SUCCESS if the
b vector has been computed
succesfull
y,
* @retval
PASTIX_ERR_BADPARAMETER otherwise.
* @retval PASTIX_SUCCESS if the
tests are
succesfull
* @retval
1, if one of the test failed
*
*******************************************************************************/
int
...
...
@@ -421,7 +421,7 @@ z_spmCheckAxb( int nrhs,
" || b_%d - A x_%d ||_1 / (||A||_1 * ||x_%d||_oo * eps) %e (%s)
\n
"
,
i
,
i
,
nr
,
i
,
i
,
i
,
back
,
fail
ure
?
"FAILED"
:
"SUCCESS"
);
fail
?
"FAILED"
:
"SUCCESS"
);
}
failure
=
failure
||
fail
;
...
...
@@ -465,7 +465,7 @@ z_spmCheckAxb( int nrhs,
" || x0_%d - x_%d ||_oo / (||x0_%d||_oo * eps) %e (%s)
\n
"
,
i
,
nr
,
i
,
i
,
i
,
forw
,
fail
ure
?
"FAILED"
:
"SUCCESS"
);
fail
?
"FAILED"
:
"SUCCESS"
);
}
failure
=
failure
||
fail
;
...
...
@@ -478,5 +478,5 @@ z_spmCheckAxb( int nrhs,
failure
?
"FAILED"
:
"SUCCESS"
);
}
return
PASTIX_SUCCESS
;
return
-
failure
;
}
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