Re: [petsc-users] PETSc / AMRex

2022-07-18 Thread Randall Mackie
> On Jul 15, 2022, at 12:26 PM, Matthew Knepley wrote: > > On Fri, Jul 15, 2022 at 2:12 PM Randall Mackie > wrote: > > >> On Jul 15, 2022, at 11:58 AM, Matthew Knepley > > wrote: >> >> On Fri, Jul 15, 2022 at 1:46 PM Randall Mackie > <

Re: [petsc-users] PETSc / AMRex

2022-07-15 Thread Randall Mackie
> On Jul 15, 2022, at 12:40 PM, Jed Brown wrote: > > Matthew Knepley writes: > >>> I currently set up a 3D DMDA using a box stencil and a stencil width of 2. >>> The i,j,k coordinates refer both to the cell (where there is a physical >>> value assigned) and to the 3 edges of the cell at the

Re: [petsc-users] PETSc / AMRex

2022-07-15 Thread Jed Brown
Matthew Knepley writes: >> I currently set up a 3D DMDA using a box stencil and a stencil width of 2. >> The i,j,k coordinates refer both to the cell (where there is a physical >> value assigned) and to the 3 edges of the cell at the top SW corner. >> For local computations, I need to be able to

Re: [petsc-users] PETSc / AMRex

2022-07-15 Thread Matthew Knepley
On Fri, Jul 15, 2022 at 2:12 PM Randall Mackie wrote: > > > On Jul 15, 2022, at 11:58 AM, Matthew Knepley wrote: > > On Fri, Jul 15, 2022 at 1:46 PM Randall Mackie > wrote: > >> On Jul 15, 2022, at 11:20 AM, Matthew Knepley wrote: >> >> On Fri, Jul 15, 2022 at 11:01 AM Randall Mackie >> wrote

Re: [petsc-users] PETSc / AMRex

2022-07-15 Thread Randall Mackie
> On Jul 15, 2022, at 11:58 AM, Matthew Knepley wrote: > > On Fri, Jul 15, 2022 at 1:46 PM Randall Mackie > wrote: >> On Jul 15, 2022, at 11:20 AM, Matthew Knepley > > wrote: >> >> On Fri, Jul 15, 2022 at 11:01 AM Randall Mackie >

Re: [petsc-users] PETSc / AMRex

2022-07-15 Thread Matthew Knepley
On Fri, Jul 15, 2022 at 1:46 PM Randall Mackie wrote: > On Jul 15, 2022, at 11:20 AM, Matthew Knepley wrote: > > On Fri, Jul 15, 2022 at 11:01 AM Randall Mackie > wrote: > >> I am also interested in converting my DMDA code to DMPlex so that I can >> use OcTree grids. >> >> Is there a simple exa

Re: [petsc-users] PETSc / AMRex

2022-07-15 Thread Randall Mackie
> On Jul 15, 2022, at 11:20 AM, Matthew Knepley wrote: > > On Fri, Jul 15, 2022 at 11:01 AM Randall Mackie > wrote: > I am also interested in converting my DMDA code to DMPlex so that I can use > OcTree grids. > > Is there a simple example that would show how to

Re: [petsc-users] PETSc / AMRex

2022-07-15 Thread Matthew Knepley
On Fri, Jul 15, 2022 at 11:01 AM Randall Mackie wrote: > I am also interested in converting my DMDA code to DMPlex so that I can > use OcTree grids. > > Is there a simple example that would show how to do a box grid in DMPlex, > or more information about how to convert a DMDA grid to DMPlex? > H

Re: [petsc-users] PETSc / AMRex

2022-07-15 Thread Randall Mackie
I am also interested in converting my DMDA code to DMPlex so that I can use OcTree grids. Is there a simple example that would show how to do a box grid in DMPlex, or more information about how to convert a DMDA grid to DMPlex? Thanks, Randy > On Jun 21, 2022, at 10:57 AM, Mark Adams wrote: >

Re: [petsc-users] PETSc / AMRex

2022-06-22 Thread Pierre Bernigaud
Mark, Thank you for this roadmap. It should be doable to go from a DMDA to a DMPLex code. I wasn't aware of the existence of p4est. From what I've seen, it should fulfil our needs. I will contact you again if we encounter any trouble. Thanks again, Pierre Le 2022-06-21 19:57, Mark Adams a é

Re: [petsc-users] PETSc / AMRex

2022-06-21 Thread Mark Adams
(keep on the list, you will need Matt and Toby soon anyway). So you want to add AMRex to your code. I think the first thing that you want to do is move your DMDA code into a DMPLex code. You can create a "box" mesh and it is not hard. Others like Matt can give advice on how to get started on that

Re: [petsc-users] PETSc / AMRex

2022-06-21 Thread Matthew Knepley
On Tue, Jun 21, 2022 at 10:01 AM Mark Adams wrote: > Hi Bernigaud, > > To be clear, you have SNES working with DMDA in AMRex, but > without adapting dynamically and you want to know what to do next. > > Is that right? > I will let Mark answer the AMReX question since he is more knowledgeable. I

Re: [petsc-users] PETSc / AMRex

2022-06-21 Thread Mark Adams
Hi Bernigaud, To be clear, you have SNES working with DMDA in AMRex, but without adapting dynamically and you want to know what to do next. Is that right? Mark On Tue, Jun 21, 2022 at 11:46 AM Bernigaud Pierre wrote: > Greetings, > > I hope you are doing great. > > We are currently working

[petsc-users] PETSc / AMRex

2022-06-21 Thread Bernigaud Pierre
Greetings, I hope you are doing great. We are currently working on parallel solver employing PETSc for the main numerical methods (GMRES, Newton-Krylov method). We would be interested in combining the PETSc solvers with the AMR framework provided by the library AMReX (https://amrex-codes.gith