1. petsc
  2. PETSc
  3. petsc

Commits

Hong Zhang  committed 7ecccc1

trivial cleanup of MatTransposeColoringCreate_SeqAIJ

  • Participants
  • Parent commits 0770667
  • Branches master

Comments (0)

Files changed (1)

File src/mat/impls/aij/seq/matmatmult.c

View file
   PetscFunctionBegin;
   ierr = ISColoringGetIS(iscoloring,PETSC_IGNORE,&isa);CHKERRQ(ierr);
 
-  /* this is ugly way to get blocksize but cannot call MatGetBlockSize() because AIJ can have bs > 1 */
-  ierr = PetscObjectTypeCompare((PetscObject)mat,MATSEQBAIJ,&flg1);CHKERRQ(ierr);
-  ierr = PetscObjectTypeCompare((PetscObject)mat,MATMPIBAIJ,&flg2);CHKERRQ(ierr);
-  if (flg1 || flg2) {
-    ierr = MatGetBlockSize(mat,&bs);CHKERRQ(ierr);
-  }
-
+  /* bs >1 is not being tested yet! */
   N         = mat->cmap->N/bs;
   c->M      = mat->rmap->N/bs;  /* set total rows, columns and local rows */
   c->N      = mat->cmap->N/bs;