<div dir="ltr">There are several but I am updating <a href="https://gitlab.com/petsc/petsc/-/merge_requests/6875/diffs#diff-content-5a7dc636e85ce214f0a7dcf710f45f1e6800c0d4" class="gmail-gl-mr-2 gmail-gl-text-decoration-none! gmail-gl-word-break-all" style="box-sizing:border-box;font-variant-ligatures:none;color:rgb(51,50,56);background-color:rgb(242,242,244);margin-right:0.25rem;word-break:break-all;font-family:"GitLab Sans",-apple-system,"system-ui","Segoe UI",Roboto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:17.5px"><strong title="" class="gmail-file-title-name" aria-describedby="__bv_tooltip_3744__" style="box-sizing:border-box">src/snes/tests/ex13.c </strong></a> now, in branch <a title="adams/gamg-fast-filter" href="https://gitlab.com/petsc/petsc/-/tree/adams/gamg-fast-filter" class="gmail-gl-link gmail-gl-text-blue-500! gmail-gl-font-monospace gmail-gl-bg-blue-50 gmail-gl-rounded-base gmail-gl-font-sm gmail-gl-px-2 gmail-gl-text-truncate gmail-gl-max-w-26" style="box-sizing:border-box;font-variant-ligatures:none;color:rgb(31,117,203);background-color:rgb(233,243,252);font-size:0.75rem;border-radius:0.25rem;max-width:13rem;padding-left:0.25rem;padding-right:0.25rem;overflow:hidden;text-overflow:ellipsis;outline:rgb(66,143,220) solid 2px">adams/gamg-fast-filter</a>. but main is fine (it should get merged very soon).<div>It does what you want scales forever, but it does not have <span style="color:rgb(14,16,26)">Neumann BCs.</span></div><div><span style="color:rgb(14,16,26)">I might be able to add that, but not today.</span></div><div><span style="color:rgb(14,16,26)"><br></span></div><div><span style="color:rgb(14,16,26)">Mark</span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 18, 2023 at 11:16 AM Khurana, Parv <<a href="mailto:p.khurana22@imperial.ac.uk">p.khurana22@imperial.ac.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg8625984865455828346">
<div lang="EN-GB" style="overflow-wrap: break-word;">
<div class="m_8625984865455828346WordSection1">
<p class="MsoNormal"><span style="color:rgb(14,16,26)">Hello PETSc users,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(14,16,26)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(14,16,26)">Thank you for this very active community of users and the mailing list.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(14,16,26)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(14,16,26)">I am looking for a PETSc example which solves the Poisson equation on a 2D domain using FEM (or HO-FEM if possible). I would like the following:<u></u><u></u></span></p>
<ol style="margin-top:0cm" start="1" type="1">
<li class="MsoNormal" style="color:rgb(14,16,26)"><span>The example should be formulated fully on PETSc, and to be solved with KSP objects in PETSc.<u></u><u></u></span></li><li class="MsoNormal" style="color:rgb(14,16,26)"><span>The problem should scale up to a few hundred processors (ideally 1000 procs).<u></u><u></u></span></li><li class="MsoNormal" style="color:rgb(14,16,26)"><span>Ideally on a unit square with either Square or Triangle element discretization.<u></u><u></u></span></li><li class="MsoNormal" style="color:rgb(14,16,26)"><span>There should be an option to specify Dirichlet/Neumann-type BCs on the boundaries.<u></u><u></u></span></li></ol>
<p class="MsoNormal"><span style="color:rgb(14,16,26)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(14,16,26)">I was wondering if someone could point me to such an example as I am relatively new to PETSc – and I am trying to avoid reinventing the wheel. I have had a look at Examples 29,32,50
and 66 in the PETSc tutorials – while they are very close to what I need I am not sure if they scale to a few hundred processors. Furthermore, I am aware that I can formulate such a problem with FENICS/Firedrake with relative ease and these software interfaces
with PETSc quite well. However, I am just trying to see if such an application already exists purely in PETSc.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(14,16,26)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(14,16,26)">Thanks, and Best<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(14,16,26)">Parv<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div></blockquote></div>