[petsc-users] Auxiliary fields for multigrid

Matthew Knepley knepley at gmail.com
Sun Nov 19 06:04:39 CST 2017


On Sun, Nov 19, 2017 at 12:40 AM, zakaryah . <zakaryah at gmail.com> wrote:

> Ok, thanks for the suggestions.
> ​I'd like to check that I understand the approach.
>
> 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.
>

That sounds right. I do not understand needing a 3rd DM.

  Thanks,

     Matt


> 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?​
>



-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/ <http://www.caam.rice.edu/~mk51/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20171119/6c349904/attachment.html>


More information about the petsc-users mailing list