Merge branch 'fix_invert_periodic_bc' into 'master'

do invert if periodic bc face domin & domout do not match

See merge request ngsolve/netgen!512
This commit is contained in:
Lackner, Christopher 2022-08-04 15:12:15 +02:00
commit 42b92263fa

View File

@ -976,6 +976,12 @@ namespace netgen
}
xbool do_invert = maybe;
if(dst.identifications[0].type == Identifications::PERIODIC)
{
auto other = static_cast<GeometryFace*>(dst.primary);
if(dst.domin != other->domout && dst.domout != other->domin)
do_invert = true;
}
// now insert mapped surface elements
for(auto sei : mesh.SurfaceElements().Range())