Claudio Tomasi <[email protected]> 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
