28 int main (
int argc,
char **argv)
32 double dparm[DPARM_SIZE];
34 char *filename = NULL;
35 spmatrix_t *spm, spm2;
49 NULL, &scatter, &driver, &filename );
54 pastixInit( &pastix_data, MPI_COMM_WORLD, iparm, dparm );
59 spm = malloc(
sizeof( spmatrix_t ) );
61 rc = spmReadDriverDist( driver, filename, spm, MPI_COMM_WORLD );
64 rc = spmReadDriver( driver, filename, spm );
67 if ( rc != SPM_SUCCESS ) {
72 spmPrintInfo( spm, stdout );
74 rc = spmCheckAndCorrect( spm, &spm2 );
BEGIN_C_DECLS typedef int pastix_int_t
void pastixFinalize(pastix_data_t **pastix_data)
Finalize the solver instance.
void pastixInitParam(pastix_int_t *iparm, double *dparm)
Initialize the iparm and dparm arrays to their default values.
void pastixInit(pastix_data_t **pastix_data, PASTIX_Comm pastix_comm, pastix_int_t *iparm, double *dparm)
Initialize the solver instance.
void pastixGetOptions(int argc, char **argv, pastix_int_t *iparm, double *dparm, int *check, int *scatter, spm_driver_t *driver, char **filename)
PaStiX helper function to read command line options in examples.
int pastix_task_analyze(pastix_data_t *pastix_data, const spmatrix_t *spm)
Perform all the preprocessing steps: ordering, symbolic factorization, reordering,...
Main PaStiX data structure.