[petsc-dev] Branches with additional features

Jed Brown jed at jedbrown.org
Mon May 29 05:38:39 CDT 2017


Pierre Jolivet <pierre.jolivet at enseeiht.fr> writes:

>> On 29 May 2017, at 06:49, Jed Brown <jed at jedbrown.org> wrote:
>> 
>> You can't get a callback from this "external Krylov solver"?
>
> You mean, a callback to let the external solver use the memory allocated by PETSc for the Mats? Unfortunately, I need the underlying memory to be contiguous between all Mats, and I don't think it is possible with the current PETSc operators for matrix creation.

You can allocate the full block, then pass portions of the (column-aligned) array in MatCreateDense().
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20170529/b722e362/attachment.sig>


More information about the petsc-dev mailing list