mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-28 06:40:33 +05:00
Fix RangeException
This commit is contained in:
parent
4a1fe78ff6
commit
92f4381c56
@ -1306,7 +1306,6 @@ void BoundaryLayerTool ::Perform()
|
|||||||
if (params.limit_growth_vectors)
|
if (params.limit_growth_vectors)
|
||||||
LimitGrowthVectorLengths();
|
LimitGrowthVectorLengths();
|
||||||
|
|
||||||
FixEdges();
|
|
||||||
FixSurfaceElements();
|
FixSurfaceElements();
|
||||||
|
|
||||||
for (auto [pi, data] : growth_vector_map)
|
for (auto [pi, data] : growth_vector_map)
|
||||||
|
@ -90,7 +90,6 @@ public:
|
|||||||
void InterpolateSurfaceGrowthVectors ();
|
void InterpolateSurfaceGrowthVectors ();
|
||||||
void InterpolateGrowthVectors ();
|
void InterpolateGrowthVectors ();
|
||||||
void LimitGrowthVectorLengths ();
|
void LimitGrowthVectorLengths ();
|
||||||
void FixEdges ();
|
|
||||||
void FixSurfaceElements ();
|
void FixSurfaceElements ();
|
||||||
|
|
||||||
void InsertNewElements (FlatArray<Array<pair<SegmentIndex, int>>, SegmentIndex> segmap, const BitArray& in_surface_direction);
|
void InsertNewElements (FlatArray<Array<pair<SegmentIndex, int>>, SegmentIndex> segmap, const BitArray& in_surface_direction);
|
||||||
|
@ -365,13 +365,6 @@ void BoundaryLayerTool ::InterpolateSurfaceGrowthVectors()
|
|||||||
addGW(pi, corrections[pi]);
|
addGW(pi, corrections[pi]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BoundaryLayerTool ::FixEdges()
|
|
||||||
{
|
|
||||||
for (auto& seg : mesh.LineSegments())
|
|
||||||
if (seg.epgeominfo[0].edgenr == -1 && seg.epgeominfo[1].edgenr == -1)
|
|
||||||
seg.edgenr = -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
void BoundaryLayerTool ::FixSurfaceElements()
|
void BoundaryLayerTool ::FixSurfaceElements()
|
||||||
{
|
{
|
||||||
static Timer tall("FixSurfaceElements");
|
static Timer tall("FixSurfaceElements");
|
||||||
|
Loading…
Reference in New Issue
Block a user