[petsc-users] dmplex normal vector incorrect for periodic gmsh grids

Matthew Knepley knepley at gmail.com
Sun Dec 18 12:11:08 CST 2022


On Sun, Dec 18, 2022 at 9:21 AM Jed Brown <jed at jedbrown.org> wrote:

> Matthew Knepley <knepley at gmail.com> writes:
>
> > On Fri, Dec 16, 2022 at 12:22 AM Praveen C <praveen at gmx.net> wrote:
> >
> >> Thank you very much. I do see correct normals now.
> >>
> >> Is there a way to set the option
> >>
> >> -dm_localize_height 1
> >>>
> >>
> >> within the code ?
> >>
> >
> > The problem is that the localization happens within the Gmsh
> construction,
> > so it is difficult to insert an API.
> > We could use a callback, but that rapidly becomes unwieldy. If you want
> to
> > do it programmatically, I would use
> > PetscOptionsSetValue().
>
> Can it not be created explicitly later?
>
> This kind of thing isn't really a run-time choice, but rather a statement
> about the way the calling code has been written.
>

You could tear down the localization, then set the height, and recreate the
localization.

  Thanks,

     Matt

-- 
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.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20221218/3e3f6cc9/attachment.html>


More information about the petsc-users mailing list