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

This commit is contained in:
Christopher Lackner 2022-08-04 10:35:06 +02:00
parent 354898498f
commit 71a2c4f6f4

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())