Merge branch 'boundarylayer_fixes' into 'master'

Boundarylayer fixes

See merge request ngsolve/netgen!566
This commit is contained in:
Hochsteger, Matthias 2023-04-21 13:03:35 +02:00
commit 9ed534c301
2 changed files with 3 additions and 3 deletions

View File

@ -654,7 +654,7 @@ namespace netgen
else
point_fixed = true;
}
if(point_moved && point_fixed)
if(point_moved && !moved_surfaces.Test(facei))
{
int new_si = mesh.GetNFD()+1;
const auto& fd = mesh.GetFaceDescriptor(facei);

View File

@ -395,6 +395,7 @@ namespace netgen
PrintMessage (3, mesh.GetNP(), " points, ",
mesh.GetNE(), " elements");
mesh.FindOpenElements(domain);
}
Box<3> domain_bbox( Box<3>::EMPTY_BOX );
@ -408,8 +409,6 @@ namespace netgen
}
domain_bbox.Increase (0.01 * domain_bbox.Diam());
mesh.FindOpenElements(domain);
int cntsteps = 0;
int meshed;
if (mesh.GetNOpenElements())
@ -532,6 +531,7 @@ namespace netgen
return;
}
mesh.VolumeElements().DeleteAll();
for(auto & m_ : md)
{
auto first_new_pi = m_.pmap.Range().Next();