mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-11 21:50:34 +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;
|
BoundaryLayerParameters blp;
|
||||||
BitArray boundaries(self.GetNFD()+1);
|
BitArray boundaries(self.GetNFD()+1);
|
||||||
boundaries.Set();
|
boundaries.Clear();
|
||||||
if(int* bc = get_if<int>(&boundary); bc)
|
if(int* bc = get_if<int>(&boundary); bc)
|
||||||
{
|
{
|
||||||
boundaries.Clear();
|
|
||||||
for (int i = 1; i <= self.GetNFD(); i++)
|
for (int i = 1; i <= self.GetNFD(); i++)
|
||||||
if(self.GetFaceDescriptor(i).BCProperty() == *bc)
|
if(self.GetFaceDescriptor(i).BCProperty() == *bc)
|
||||||
boundaries.SetBit(i);
|
boundaries.SetBit(i);
|
||||||
@ -1216,6 +1215,7 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
|
|||||||
auto& fd = self.GetFaceDescriptor(i);
|
auto& fd = self.GetFaceDescriptor(i);
|
||||||
if(regex_match(fd.GetBCName(), pattern))
|
if(regex_match(fd.GetBCName(), pattern))
|
||||||
{
|
{
|
||||||
|
boundaries.SetBit(i);
|
||||||
auto dom_pattern = get_if<string>(&domain);
|
auto dom_pattern = get_if<string>(&domain);
|
||||||
// only add if adjacent to domain
|
// only add if adjacent to domain
|
||||||
if(dom_pattern)
|
if(dom_pattern)
|
||||||
|
Loading…
Reference in New Issue
Block a user