Matthew Knepley <knep...@gmail.com> writes: > On Fri, Dec 16, 2022 at 12:22 AM Praveen C <prav...@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.