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

Matthew Knepley knepley at gmail.com
Thu Nov 13 15:27:44 CST 2025


Here is the MR:  https://urldefense.us/v3/__https://gitlab.com/petsc/petsc/-/merge_requests/8845__;!!G_uCfscf7eWS!ZmoN7SHfAQw89DROdmXJv-lFozEHO_b5_4vXYl19TEES-ofkxjaaeq13Z5aj1-VVMY43qgXqgj5Y1WIH2Mba$ 

  Thanks,

     Matt

On Tue, Oct 21, 2025 at 4:24 PM Matthew Knepley <knepley at gmail.com> wrote:

> 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!ZmoN7SHfAQw89DROdmXJv-lFozEHO_b5_4vXYl19TEES-ofkxjaaeq13Z5aj1-VVMY43qgXqgj5Y1TFMijNU$ 
> <https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!ZmoN7SHfAQw89DROdmXJv-lFozEHO_b5_4vXYl19TEES-ofkxjaaeq13Z5aj1-VVMY43qgXqgj5Y1Sq4JsWY$ >
>


-- 
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!ZmoN7SHfAQw89DROdmXJv-lFozEHO_b5_4vXYl19TEES-ofkxjaaeq13Z5aj1-VVMY43qgXqgj5Y1TFMijNU$  <https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!ZmoN7SHfAQw89DROdmXJv-lFozEHO_b5_4vXYl19TEES-ofkxjaaeq13Z5aj1-VVMY43qgXqgj5Y1Sq4JsWY$ >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20251113/03bff06e/attachment-0001.html>


More information about the petsc-users mailing list