Commits

Lawrence Mitchell  committed e94fe3b

Check column block size in MatSetBlockSizes

Previously, only the row block size was checked for consistency across
processes.

  • Participants
  • Parent commits b6e7482

Comments (0)

Files changed (1)

File src/mat/interface/matrix.c

   PetscFunctionBegin;
   PetscValidHeaderSpecific(mat,MAT_CLASSID,1);
   PetscValidLogicalCollectiveInt(mat,rbs,2);
+  PetscValidLogicalCollectiveInt(mat,cbs,3);
   ierr = PetscLayoutSetBlockSize(mat->rmap,rbs);CHKERRQ(ierr);
   ierr = PetscLayoutSetBlockSize(mat->cmap,cbs);CHKERRQ(ierr);
   PetscFunctionReturn(0);