[petsc-users] Get DM used to create Vec

Carl-Johan Thore carljohanthore at gmail.com
Thu Nov 16 08:02:14 CST 2023


Hi,

Given a Vec (or Mat) created at some point with DMCreate...,
is it possible to retrieve from this Vec a pointer to the DM used
to create it?

(I could perhaps build my own Vec-type on top of PETSc's
which carried with it such a pointer but that doesn't seem like
a good idea)

Kind regards,
Carl-Johan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20231116/66daf246/attachment.html>


More information about the petsc-users mailing list