Mentions légales du service

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

Cleanup the spmInit and make sure the reader finalize the initialization

parent 07985b26
No related branches found
No related tags found
No related merge requests found
......@@ -62,18 +62,7 @@ spmReadDriver( pastix_driver_t driver,
int mpirank = 0;
int mpiinit;
spm->mtxtype = PastixGeneral;
spm->flttype = PastixDouble;
spm->fmttype = PastixCSC;
spm->gN = 0;
spm->n = 0;
spm->gnnz = 0;
spm->nnz = 0;
spm->dof = 1;
spm->colptr = NULL;
spm->rowptr = NULL;
spm->values = NULL;
spm->loc2glob = NULL;
spmInit(spm);
MPI_Initialized( &mpiinit );
if (mpiinit) {
......@@ -327,5 +316,10 @@ spmReadDriver( pastix_driver_t driver,
/* MPI_Bcast(*type, 4, MPI_CHAR, 0, comm); */
}
spm->gNexp = spm->gN;
spm->nexp = spm->n;
spm->gnnzexp = spm->gnnz;
spm->nnzexp = spm->nnz;
return PASTIX_SUCCESS;
}
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