Mentions légales du service

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

Keep removing PASTIX_FOPEN

parent 264ded35
No related branches found
No related tags found
No related merge requests found
......@@ -470,7 +470,13 @@ spmLoad( pastix_spm_t *spm,
int local_stream = 0;
if ( infile == NULL ) {
PASTIX_FOPEN( infile, "matrix.spm", "r" );
infile = fopen( "matrix.spm", "r" );
if ( infile == NULL ) {
pastix_error_print( "spmLoad: Impossible to open the file matrix.spm\n");
return PASTIX_ERR_FILE;
}
local_stream = 1;
}
......@@ -808,7 +814,12 @@ spmSave( const pastix_spm_t *spm,
int local_stream = 0;
if ( outfile == NULL ) {
PASTIX_FOPEN( outfile, "matrix.spm", "w" );
outfile = fopen( "matrix.spm", "w" );
if ( outfile == NULL ) {
pastix_error_print( "spmSave: Impossible to open the file matrix.spm\n");
return PASTIX_ERR_FILE;
}
local_stream = 1;
}
......
......@@ -113,7 +113,11 @@ spmReadDriver( pastix_driver_t driver,
SCOTCH_Graph sgraph;
FILE *file;
PASTIX_FOPEN( file, filename, "r" );
file = fopen( filename, "r" );
if ( file == NULL ) {
pastix_error_print("spmReadDriver: impossible to open the file %s\n", filename );
return PASTIX_ERR_FILE;
}
/* Check integer compatibility */
if (sizeof(pastix_int_t) != sizeof(SCOTCH_Num)) {
......
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