Re: [petsc-users] Using petsc with an existing domain decomposition.

2019-10-13 Thread Smith, Barry F. via petsc-users
> On Oct 13, 2019, at 4:24 AM, Pierre Gubernatis via petsc-users > wrote: > > Hello all, > > It souds that the best way to introduce petsc in a code is not to introduce > it, but develop the code over the petsc structure. > > It is probably true but my problem is that my existing code

Re: [petsc-users] Using petsc with an existing domain decomposition.

2019-10-13 Thread Mark Adams via petsc-users
On Sun, Oct 13, 2019 at 5:25 AM Pierre Gubernatis via petsc-users < petsc-users@mcs.anl.gov> wrote: > Hello all, > > It souds that the best way to introduce petsc in a code is not to > introduce it, but develop the code over the petsc structure. > All things being equal, yes, but few users start

Re: [petsc-users] Using petsc with an existing domain decomposition.

2019-10-13 Thread Matthew Knepley via petsc-users
Without having seen your code, it sounds to me like the best strategy here is to: 1) Produce a mirror of your mesh using DMStag 2) Use that DM to construct the linear block problems, which can then be solved by PETSc Since the PETSc grid matches your own, you can share the solution

[petsc-users] Using petsc with an existing domain decomposition.

2019-10-13 Thread Pierre Gubernatis via petsc-users
Hello all, It souds that the best way to introduce petsc in a code is not to introduce it, but develop the code over the petsc structure. It is probably true but my problem is that my existing code already is equipped with a domain decomposition based on MPI (a typical themal hydraulic with