A simple example that performs only the analyses steps onto the given graph.
These tests doesn't require the values of the matrix.
- Copyright
- 2015-2021 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria, Univ. Bordeaux. All rights reserved.
- Version
- 6.2.0
- Author
- Pierre Ramet
-
Gregoire Pichon
-
Mathieu Faverge
-
Theophile Terraz
-
Tony Delarue
- Date
- 2021-04-07
/
#include <spm.h>
#include <limits.h>
int main (
int argc,
char **argv)
{
pastix_data_t *pastix_data = NULL;
pastix_int_t iparm[IPARM_SIZE];
double dparm[DPARM_SIZE];
spm_driver_t driver;
char *filename = NULL;
spmatrix_t *spm, spm2;
int rc;
iparm, dparm,
NULL, &driver, &filename );
pastixInit( &pastix_data, MPI_COMM_WORLD, iparm, dparm );
spm = malloc( sizeof( spmatrix_t ) );
rc = spmReadDriver( driver, filename, spm );
free( filename );
if ( rc != SPM_SUCCESS ) {
return rc;
}
spmPrintInfo( spm, stdout );
rc = spmCheckAndCorrect( spm, &spm2 );
if ( rc != 0 ) {
spmExit( spm );
*spm = spm2;
rc = 0;
}
spmExit( spm );
free( spm );
return EXIT_SUCCESS;
}
Definition in file analyze.c.