mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 13:50:33 +05:00
* Temporarily fixed bug: array "facedecoding" gets corrupted after converting a mesh to second order, subsequently causing a crash on using the function "GetSurfaceElementsOfFace"
-- Corrected by uncommenting a previous approach used to obtain the surface elements of a face, and commenting out the currently used code till further clarification
This commit is contained in:
parent
df79bea6bd
commit
0d1f18749d
@ -4983,16 +4983,26 @@ namespace netgen
|
|||||||
static int timer = NgProfiler::CreateTimer ("GetSurfaceElementsOfFace");
|
static int timer = NgProfiler::CreateTimer ("GetSurfaceElementsOfFace");
|
||||||
NgProfiler::RegionTimer reg (timer);
|
NgProfiler::RegionTimer reg (timer);
|
||||||
|
|
||||||
/*
|
|
||||||
sei.SetSize (0);
|
sei.SetSize (0);
|
||||||
for (SurfaceElementIndex i = 0; i < GetNSE(); i++)
|
for (SurfaceElementIndex i = 0; i < GetNSE(); i++)
|
||||||
|
{
|
||||||
if ( (*this)[i].GetIndex () == facenr && (*this)[i][0] >= PointIndex::BASE &&
|
if ( (*this)[i].GetIndex () == facenr && (*this)[i][0] >= PointIndex::BASE &&
|
||||||
!(*this)[i].IsDeleted() )
|
!(*this)[i].IsDeleted() )
|
||||||
|
{
|
||||||
sei.Append (i);
|
sei.Append (i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int size1 = sei.Size();
|
|
||||||
|
/* Philippose - 01/10/2009
|
||||||
|
Commented out the following lines, and activated the originally
|
||||||
|
commented out lines above because of a bug which causes corruption
|
||||||
|
of the variable "facedecoding" when a mesh is converted to second order
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// int size1 = sei.Size();
|
||||||
|
/*
|
||||||
sei.SetSize(0);
|
sei.SetSize(0);
|
||||||
|
|
||||||
SurfaceElementIndex si = facedecoding[facenr-1].firstelement;
|
SurfaceElementIndex si = facedecoding[facenr-1].firstelement;
|
||||||
@ -5006,6 +5016,7 @@ namespace netgen
|
|||||||
|
|
||||||
si = (*this)[si].next;
|
si = (*this)[si].next;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
// *testout << "with list = " << endl << sei << endl;
|
// *testout << "with list = " << endl << sei << endl;
|
||||||
|
Loading…
Reference in New Issue
Block a user