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:<br>
<br>typedef struct {<br>element* e; face* f; flow* flw; }FieldCtx;<br> <br>FC.e = e; <br> FC.f = f;
<br> FC.flw = flw;<br><br><div class="gmail_quote"><br></div><br>