As I want to keep my code structure as before applying SNES, I defined a
FieldContext and pass my data like element and face values into this
context by pointing there addresses of elements and faces of the field like
this:

typedef struct {
element* e; face* f; flow* flw; }FieldCtx;

FC.e = e;
    FC.f = f;
    FC.flw = flw;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111123/98f6c28e/attachment.htm>

Reply via email to