[petsc-users] PETSc Ordering for vectors generated by DMCreateGlobalVector

Matthew Knepley knepley at gmail.com
Mon Nov 29 09:02:05 CST 2021


On Sun, Nov 28, 2021 at 8:05 AM 袁煕 <yuanxi at advancesoft.jp> wrote:

> Hi all,
>
> Application Ordering of a vector is generally different from its PETSc
> one. In my application, I wish to retrieve the value of a vector generated
> by DMCreateGlobalVector into its original application order. I know there
> are some functions like DMDAGetAO to do this. My question is : Is there any
> DMPlex version of such a function?  If not, I wish to know how to do it.
>

There is a GlobalToNatural map for Plex. We are in the process of reworking
this, but you can see its use in Plex test ex26.

  Thanks,

     Matt


> Many thanks
>
> Yuan
>


-- 
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://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20211129/6048f09d/attachment.html>


More information about the petsc-users mailing list