[petsc-dev] How to get the subsnes from a nonlinear problem

Matthew Knepley knepley at gmail.com
Sun Feb 18 07:53:05 CST 2018


On Sun, Feb 18, 2018 at 1:59 AM, Lulu Liu <lulu.liu at kaust.edu.sa> wrote:

> Hi,
>
> I am trying to use nonlinear elimination (NE) to solve a nonlinear
> problem, and I have to solve  a subproblem.  How to get the subsnes from
> the original global nonlinear problem? Is there any easy way to do it?
>

Are you doing NE using SNESCOMPOSITE or a nonlinear preconditioner. If the
NPC, can you use


http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/SNES/SNESGetNPC.html

  Thanks,

     Matt


> For example, the global problem is defined on 40x40 mesh, and the local
> problem (the size is 5x5) is defined in the center of domain [0,1]x[0,1].
>
> Thanks!
>
>
> ------------------------------
> This message and its contents, including attachments are intended solely
> for the original recipient. If you are not the intended recipient or have
> received this message in error, please notify me immediately and delete
> this message from your computer system. Any unauthorized use or
> distribution is prohibited. Please consider the environment before printing
> this email.




-- 
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-dev/attachments/20180218/d524eecd/attachment.html>


More information about the petsc-dev mailing list