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

Jed Brown jed at jedbrown.org
Sun Dec 18 08:20:57 CST 2022


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.


More information about the petsc-users mailing list