[petsc-users] DMDAVecGetArrayDOF for read-only vectors

Claudio Tomasi claudio.tomasi at usi.ch
Tue Feb 25 10:29:14 CST 2020


Dear all,
I would like to ask whether there's an analogous of the routine DMDAVecGetArrayDOF for read-only vectors.
I'm using the SNES solver and in computing the SNESfunction I need to read and use the values of the solution vector x, which is created with DMCreateGlobalVector where the associated DM has two dofs per node.
Best regards,
Claudio Tomasi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200225/3fea1eb2/attachment.html>


More information about the petsc-users mailing list