> On 22 Jan 2019, at 22:30, Justin Chang via petsc-users > <[email protected]> wrote: > > As of right now, the dict() is something the user constructs inside > mycode.py. It would contain things like the viscosity, boundary conditions, > function space, etc which are needed to construct the PC operators in MyPCD. > I believe I saw the Firedrake guys do something similar to this I attach it as an application context to the DM and make sure it is transferred when I split the dm into pieces. Then you do pc.getDM().getAppCtx() or similar. Lawrence
Re: [petsc-users] Help with petsc4py and PC Python type
Lawrence Mitchell via petsc-users Tue, 22 Jan 2019 14:50:54 -0800
- Re: [petsc-users] Help with petsc4py and... Jed Brown via petsc-users
- Re: [petsc-users] Help with petsc4p... Lawrence Mitchell via petsc-users
- Re: [petsc-users] Help with petsc4p... Jed Brown via petsc-users
