On Sun, Dec 18, 2022 at 9:21 AM Jed Brown <[email protected]> wrote:

> Matthew Knepley <[email protected]> writes:
>
> > On Fri, Dec 16, 2022 at 12:22 AM Praveen C <[email protected]> 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/>

Reply via email to