> 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 

Reply via email to