[petsc-users] Confusion with MatGetLocalSubMatrix
Jed Brown
jed at jedbrown.org
Fri Dec 19 12:01:38 CST 2014
Lawrence Mitchell <lawrence.mitchell at imperial.ac.uk> writes:
> What is ISSetBlockSize for then? Just hanging information on the IS for use elsewhere?
The index set would need to be contiguous:
static PetscErrorCode ISSetBlockSize_Stride(IS is,PetscInt bs)
{
IS_Stride *sub = (IS_Stride*)is->data;
PetscErrorCode ierr;
PetscFunctionBegin;
if (sub->step != 1 && bs != 1) SETERRQ2(PetscObjectComm((PetscObject)is),PETSC_ERR_ARG_SIZ,"ISSTRIDE has stride %D, cannot be blocked of size %D",sub->step,bs);
ierr = PetscLayoutSetBlockSize(is->map, bs);CHKERRQ(ierr);
PetscFunctionReturn(0);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20141219/ccd431e0/attachment.pgp>
More information about the petsc-users
mailing list