<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Nov 19, 2017 at 12:40 AM, zakaryah . <span dir="ltr"><<a href="mailto:zakaryah@gmail.com" target="_blank">zakaryah@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="auto">Ok, thanks for the suggestions.  <div style="font-size:small;display:inline">​I'd like to check that I understand the approach.</div></div><div dir="auto"><div style="font-size:small;display:inline"><br></div></div><div dir="auto"><div style="font-size:small;display:inline">I create one DMDA for the variables to be solved by the SNES.  That DMDA will be coarsened and refined by the options I pass to e.g. FAS.  In my user context struct, I can have a second DMDA for the auxiliary fields.  At each coarsening or refinement of the solution variable DMDA, I add a hook to simultaneously coarsen or refine the auxiliary fields. </div></div></div></blockquote><div><br></div><div>That sounds right. I do not understand needing a 3rd DM.</div><div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="auto"><div style="font-size:small;display:inline"> I suppose I can store the results of those operations in a third DMDA in the user context struct, because I'll need to access them from the SNES Function and Jacobian routines.  Does that sound right?​</div></div>
</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.caam.rice.edu/~mk51/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div>
</div></div>