Mentions légales du service

Skip to content
Snippets Groups Projects
Commit ff8ce1fd authored by PICHON Gregoire's avatar PICHON Gregoire
Browse files

remove computed fields

parent 1af51fdf
No related branches found
No related tags found
No related merge requests found
...@@ -77,11 +77,10 @@ z_spmLaplacian_7points( pastix_spm_t *spm, ...@@ -77,11 +77,10 @@ z_spmLaplacian_7points( pastix_spm_t *spm,
spm->mtxtype = PastixHermitian; spm->mtxtype = PastixHermitian;
spm->flttype = PastixComplex64; spm->flttype = PastixComplex64;
spm->fmttype = PastixCSC; spm->fmttype = PastixCSC;
spm->gnnz = nnz;
spm->nnz = nnz; spm->nnz = nnz;
spm->dof = 1; spm->dof = 1;
assert( spm->gN == dim1*dim2*dim3 ); assert( spm->n == dim1*dim2*dim3 );
/* Allocating */ /* Allocating */
spm->colptr = malloc((spm->n+1)*sizeof(pastix_int_t)); spm->colptr = malloc((spm->n+1)*sizeof(pastix_int_t));
...@@ -161,7 +160,7 @@ z_spmLaplacian_7points( pastix_spm_t *spm, ...@@ -161,7 +160,7 @@ z_spmLaplacian_7points( pastix_spm_t *spm,
} }
} }
assert( (spm->colptr[ spm->gN ] - spm->colptr[0]) == nnz ); assert( (spm->colptr[ spm->n ] - spm->colptr[0]) == nnz );
(void)alpha; (void)beta; (void)alpha; (void)beta;
} }
...@@ -199,11 +198,10 @@ z_spmExtendedLaplacian2D( pastix_spm_t *spm, ...@@ -199,11 +198,10 @@ z_spmExtendedLaplacian2D( pastix_spm_t *spm,
spm->mtxtype = PastixSymmetric; spm->mtxtype = PastixSymmetric;
spm->flttype = PastixComplex64; spm->flttype = PastixComplex64;
spm->fmttype = PastixCSC; spm->fmttype = PastixCSC;
spm->gnnz = nnz;
spm->nnz = nnz; spm->nnz = nnz;
spm->dof = 1; spm->dof = 1;
assert( spm->gN == dim1*dim2 ); assert( spm->n == dim1*dim2 );
/* Allocating */ /* Allocating */
spm->colptr = malloc((spm->n+1)*sizeof(pastix_int_t)); spm->colptr = malloc((spm->n+1)*sizeof(pastix_int_t));
...@@ -285,7 +283,7 @@ z_spmExtendedLaplacian2D( pastix_spm_t *spm, ...@@ -285,7 +283,7 @@ z_spmExtendedLaplacian2D( pastix_spm_t *spm,
} }
} }
assert( (spm->colptr[ spm->gN ] - spm->colptr[0]) == nnz ); assert( (spm->colptr[ spm->n ] - spm->colptr[0]) == nnz );
} }
/** /**
...@@ -330,11 +328,10 @@ z_spmExtendedLaplacian3D( pastix_spm_t *spm, ...@@ -330,11 +328,10 @@ z_spmExtendedLaplacian3D( pastix_spm_t *spm,
spm->mtxtype = PastixSymmetric; spm->mtxtype = PastixSymmetric;
spm->flttype = PastixComplex64; spm->flttype = PastixComplex64;
spm->fmttype = PastixCSC; spm->fmttype = PastixCSC;
spm->gnnz = nnz;
spm->nnz = nnz; spm->nnz = nnz;
spm->dof = 1; spm->dof = 1;
assert( spm->gN == dim1*dim2*dim3 ); assert( spm->n == dim1*dim2*dim3 );
/* Allocating */ /* Allocating */
spm->colptr = malloc((spm->n+1)*sizeof(pastix_int_t)); spm->colptr = malloc((spm->n+1)*sizeof(pastix_int_t));
...@@ -515,5 +512,5 @@ z_spmExtendedLaplacian3D( pastix_spm_t *spm, ...@@ -515,5 +512,5 @@ z_spmExtendedLaplacian3D( pastix_spm_t *spm,
} }
} }
assert( (spm->colptr[ spm->gN ] - spm->colptr[0]) == nnz ); assert( (spm->colptr[ spm->n ] - spm->colptr[0]) == nnz );
} }
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