[petsc-dev] BlockGetIndices and GetBlockIndices

Lawrence Mitchell wence at gmx.li
Wed Oct 16 11:30:56 CDT 2019

On Wed, 16 Oct 2019 at 15:54, Jed Brown via petsc-dev <petsc-dev at mcs.anl.gov>

> Stefano Zampini <stefano.zampini at gmail.com> writes:
> > I just took a look at the ISGENERAL code. ISSetBlockSize_General just
> sets the block size of the layout (??)
> > ISGetIndices always return the data->idx memory.
> > So, a more profound question is: what is the model behind setting the
> block size on a ISGENERAL? And on a IS in general?
> My recollection is that it was added to support MatNest and
> MatGetLocalSubMatrix preserving block sizes so that MatSetValuesBlocked
> could be used.

We use it for this purpose (certainly ISStride, I think ISGeneral)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20191016/d556b029/attachment.html>

More information about the petsc-dev mailing list