Commit 89310b2b authored by Pierre Ramet's avatar Pierre Ramet Committed by Mathieu Faverge
Browse files

fix warning graph_isolate

parent 147f96e9
......@@ -101,7 +101,7 @@ int graphIsolate( pastix_int_t n,
pastix_int_t iter_isolate = 0;
pastix_int_t iter_non_isolate = 0;
if (isolate_n > n) {
if ( (isolate_n > n) || (isolate_n < 0) ) {
errorPrintW( "Number of columns to isolate greater than the columns in the GRAPH matrix\n");
return PASTIX_ERR_BADPARAMETER;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment