[petsc-users] DMDAVecGetArrayDOF for read-only vectors

Jed Brown jed at jedbrown.org
Tue Feb 25 12:49:58 CST 2020


Claudio Tomasi <claudio.tomasi at usi.ch> writes:

> Dear all,
> I would like to ask whether there's an analogous of the routine DMDAVecGetArrayDOF for read-only vectors.

https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DMDA/DMDAVecGetArrayDOFRead.html

I see it's missing links to/from related pages, so I've added those in this MR

https://gitlab.com/petsc/petsc/-/merge_requests/2560

> 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


More information about the petsc-users mailing list