[petsc-users] How to map global vector to natural vector

Matthew Knepley knepley at gmail.com
Tue Oct 21 15:24:12 CDT 2025


I will fix it.

Thanks,

    Matt

On Tue, Oct 21, 2025 at 12:09 PM Xu, Donghui via petsc-users <
petsc-users at mcs.anl.gov> wrote:

> Dear PETSc Team,
>
> I am working with petsc4py for my model. I had some experience of using
> PETSc in Fortran. In Fortran, I used the following subroutines:
>
> call DMPlexCreateNaturalVector(dm, natural, ierr)
> call DMPlexNaturalToGlobalBegin(dm,natural,X,ierr)
> call DMPlexNaturalToGlobalEnd(dm,natural,X,ierr)
>
> However, I found there are no such interfaces in petsc4py. Can you advise
> me on how to get the global vector in natural order with DMPLEX in petsc4py?
>
> Thanks,
> Donghui
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://urldefense.us/v3/__https://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!YPaxLUvh_DJWIDUmqUgzeBLwP3fZLTnd1_Xd0BJ9SjKAjwWllNdUb7sj33kgPwnIUHwjfhmzRnKelSbWjpPT$  <https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!YPaxLUvh_DJWIDUmqUgzeBLwP3fZLTnd1_Xd0BJ9SjKAjwWllNdUb7sj33kgPwnIUHwjfhmzRnKeld-O9H2n$ >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20251021/42e46b8f/attachment.html>


More information about the petsc-users mailing list