Mentions légales du service

Skip to content
Snippets Groups Projects
Commit db2d1aeb authored by Mathieu Faverge's avatar Mathieu Faverge
Browse files

Add some checks

parent 77fb4683
No related branches found
No related tags found
No related merge requests found
......@@ -192,6 +192,9 @@ z_spmGenRHS( int type, int nrhs,
if( (nrhs > 1) && (ldb < spm->n) )
return PASTIX_ERR_BADPARAMETER;
if( spm->dof != 1 )
return PASTIX_ERR_BADPARAMETER;
if (nrhs == 1) {
ldb = spm->n;
ldx = spm->n;
......@@ -342,6 +345,9 @@ z_spmCheckAxb( int nrhs,
double backward, forward, eps;
int failure = 0;
assert( spm->nexp == spm->n );
assert( spm->dof == 1 );
eps = LAPACKE_dlamch('e');
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment