Mentions légales du service

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

Rename spmUpdateFields

parent 0d34af1a
No related branches found
No related tags found
No related merge requests found
...@@ -122,7 +122,7 @@ spmInit( pastix_spm_t *spm ) ...@@ -122,7 +122,7 @@ spmInit( pastix_spm_t *spm )
* *
*******************************************************************************/ *******************************************************************************/
void void
spmUpdateFields( pastix_spm_t *spm ) spmUpdateComputedFields( pastix_spm_t *spm )
{ {
/** /**
......
...@@ -145,7 +145,7 @@ void spmInit( pastix_spm_t *spm ); ...@@ -145,7 +145,7 @@ void spmInit( pastix_spm_t *spm );
void spmExit( pastix_spm_t *spm ); void spmExit( pastix_spm_t *spm );
pastix_spm_t *spmCopy( const pastix_spm_t *spm ); pastix_spm_t *spmCopy( const pastix_spm_t *spm );
void spmBase( pastix_spm_t *spm, int baseval ); void spmBase( pastix_spm_t *spm, int baseval );
void spmUpdateFields( pastix_spm_t *spm ); void spmUpdateComputedFields( pastix_spm_t *spm );
int spmConvert( int ofmttype, pastix_spm_t *ospm ); int spmConvert( int ofmttype, pastix_spm_t *ospm );
void * spm2Dense( const pastix_spm_t *spm ); void * spm2Dense( const pastix_spm_t *spm );
pastix_int_t spmFindBase( const pastix_spm_t *spm ); pastix_int_t spmFindBase( const pastix_spm_t *spm );
......
...@@ -67,7 +67,7 @@ spmDofExtend( const int type, ...@@ -67,7 +67,7 @@ spmDofExtend( const int type,
} }
} }
spmUpdateFields( newspm ); spmUpdateComputedFields( newspm );
switch (spm->flttype) { switch (spm->flttype) {
case PastixFloat: case PastixFloat:
......
...@@ -380,7 +380,7 @@ spmLoad( pastix_spm_t *spm, ...@@ -380,7 +380,7 @@ spmLoad( pastix_spm_t *spm,
spm->dof = dof; spm->dof = dof;
spm->layout = layout; spm->layout = layout;
spmUpdateFields( spm ); spmUpdateComputedFields( spm );
assert( nnzexp == spm->nnzexp ); assert( nnzexp == spm->nnzexp );
assert( spm->gN == gN ); assert( spm->gN == gN );
......
...@@ -314,10 +314,7 @@ spmReadDriver( pastix_driver_t driver, ...@@ -314,10 +314,7 @@ spmReadDriver( pastix_driver_t driver,
/* MPI_Bcast(*type, 4, MPI_CHAR, 0, comm); */ /* MPI_Bcast(*type, 4, MPI_CHAR, 0, comm); */
} }
spm->gNexp = spm->gN; spmUpdateComputedFields( spm );
spm->nexp = spm->n;
spm->gnnzexp = spm->gnnz;
spm->nnzexp = spm->nnz;
return PASTIX_SUCCESS; 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