[petsc-users] How to map global vector to natural vector
Xu, Donghui
donghui.xu at pnnl.gov
Thu Nov 13 15:28:43 CST 2025
Thank you, Matt!
From: Matthew Knepley <knepley at gmail.com>
Date: Thursday, November 13, 2025 at 1:28 PM
To: Xu, Donghui <donghui.xu at pnnl.gov>
Cc: petsc-users at mcs.anl.gov <petsc-users at mcs.anl.gov>
Subject: Re: [petsc-users] How to map global vector to natural vector
Check twice before you click! This email originated from outside PNNL.
Here is the MR: https://urldefense.us/v3/__https://gitlab.com/petsc/petsc/-/merge_requests/8845__;!!G_uCfscf7eWS!eigadZs4YANflOBAegy-QTp9ga_gDR04kBT3z1MTqB-hieojq_WyFnV_8kjEYFw4cGI5ugeoekJUtEVOobw-94jwWXM$
Thanks,
Matt
On Tue, Oct 21, 2025 at 4:24 PM Matthew Knepley <knepley at gmail.com<mailto: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<mailto: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!eigadZs4YANflOBAegy-QTp9ga_gDR04kBT3z1MTqB-hieojq_WyFnV_8kjEYFw4cGI5ugeoekJUtEVOobw-Y8UMmvs$ <https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!eigadZs4YANflOBAegy-QTp9ga_gDR04kBT3z1MTqB-hieojq_WyFnV_8kjEYFw4cGI5ugeoekJUtEVOobw-hCsLqdY$ >
--
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!eigadZs4YANflOBAegy-QTp9ga_gDR04kBT3z1MTqB-hieojq_WyFnV_8kjEYFw4cGI5ugeoekJUtEVOobw-Y8UMmvs$ <https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!eigadZs4YANflOBAegy-QTp9ga_gDR04kBT3z1MTqB-hieojq_WyFnV_8kjEYFw4cGI5ugeoekJUtEVOobw-hCsLqdY$ >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20251113/389ae021/attachment.html>
More information about the petsc-users
mailing list