mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
fix setting boundarylayer boundaries
This commit is contained in:
parent
cf992b04da
commit
0402ca07cd
@ -1200,10 +1200,9 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
|
||||
{
|
||||
BoundaryLayerParameters blp;
|
||||
BitArray boundaries(self.GetNFD()+1);
|
||||
boundaries.Set();
|
||||
boundaries.Clear();
|
||||
if(int* bc = get_if<int>(&boundary); bc)
|
||||
{
|
||||
boundaries.Clear();
|
||||
for (int i = 1; i <= self.GetNFD(); i++)
|
||||
if(self.GetFaceDescriptor(i).BCProperty() == *bc)
|
||||
boundaries.SetBit(i);
|
||||
@ -1216,6 +1215,7 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
|
||||
auto& fd = self.GetFaceDescriptor(i);
|
||||
if(regex_match(fd.GetBCName(), pattern))
|
||||
{
|
||||
boundaries.SetBit(i);
|
||||
auto dom_pattern = get_if<string>(&domain);
|
||||
// only add if adjacent to domain
|
||||
if(dom_pattern)
|
||||
|
Loading…
Reference in New Issue
Block a user