Re: [petsc-users] DMDA ghosted boundary

2022-08-15 Thread Barry Smith
Something like DMDASetComputeGhostBoundary(DM dm, s(DM,Vec,Vec,void*),d(void*)) where s(DM dm, Vec g, Vec l, void*ctx) { User code that fills in appropriate places in l. d(void* ctx) { Optional: Destroys optional user context when DM is destroyed. } and s() gets called inside of DMGl

Re: [petsc-users] DMDA ghosted boundary

2022-08-15 Thread David Scott
On 12/08/2022 18:15, Matthew Knepley wrote: This email was sent to you by someone outside the University. You should only click on links or attachments if you are certain that the email is genuine and the content is safe. On Fri, Aug 12, 2022 at 9:27 AM David Scott wrote: On 12/08/2022

Re: [petsc-users] DMDA ghosted boundary

2022-08-12 Thread Barry Smith
> On Aug 12, 2022, at 9:27 AM, David Scott wrote: > > > > On 12/08/2022 11:26, Matthew Knepley wrote: >> This email was sent to you by someone outside the University. >> You should only click on links or attachments if you are certain that the >> email is genuine and the content is safe. >>

Re: [petsc-users] DMDA ghosted boundary

2022-08-12 Thread Matthew Knepley
On Fri, Aug 12, 2022 at 9:27 AM David Scott wrote: > On 12/08/2022 11:26, Matthew Knepley wrote: > > This email was sent to you by someone outside the University. > You should only click on links or attachments if you are certain that the > email is genuine and the content is safe. > On Fri, Aug

Re: [petsc-users] DMDA ghosted boundary

2022-08-12 Thread David Scott
On 12/08/2022 11:26, Matthew Knepley wrote: This email was sent to you by someone outside the University. You should only click on links or attachments if you are certain that the email is genuine and the content is safe. On Fri, Aug 12, 2022 at 2:21 AM Quynh Nguyen mailto:nguyenquynh9...@gmai

Re: [petsc-users] DMDA ghosted boundary

2022-08-12 Thread nguyenquynh9537
I got it, thank you so much! null

Re: [petsc-users] DMDA ghosted boundary

2022-08-12 Thread Matthew Knepley
On Fri, Aug 12, 2022 at 2:21 AM Quynh Nguyen wrote: > Dear petsc developers and users, > > I am a new petsc user ^_^. > I have some questions about using DMDA_BOUNDARY_GHOSTED. > > 1. I have 2D Poisson code with domain (nx, ny), and I used > DMDA_BOUNDARY_NONE, then the size of the matrix is (nx*

[petsc-users] DMDA ghosted boundary

2022-08-11 Thread Quynh Nguyen
Dear petsc developers and users, I am a new petsc user ^_^. I have some questions about using DMDA_BOUNDARY_GHOSTED. 1. I have 2D Poisson code with domain (nx, ny), and I used DMDA_BOUNDARY_NONE, then the size of the matrix is (nx*ny)X(nx*ny). *what is the size of the matrix if I used DMDA_BOUND