[petsc-users] Help with petsc4py and PC Python type

Lawrence Mitchell wence at gmx.li
Tue Jan 22 16:49:11 CST 2019



> On 22 Jan 2019, at 22:30, Justin Chang via petsc-users <petsc-users at mcs.anl.gov> 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 


More information about the petsc-users mailing list