mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
fix GetSurfaceElementOfPoint
only call GetElementOfPoint, if there are volume elements (otherwise we get an endless loop of mutual function calls here...)
This commit is contained in:
parent
559a9f2beb
commit
00855acfec
@ -5757,7 +5757,10 @@ namespace netgen
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
double vlam[3];
|
double vlam[3];
|
||||||
int velement = GetElementOfPoint(p,vlam,NULL,build_searchtree,allowindex);
|
int velement = 0;
|
||||||
|
|
||||||
|
if(GetNE())
|
||||||
|
GetElementOfPoint(p,vlam,NULL,build_searchtree,allowindex);
|
||||||
|
|
||||||
//(*testout) << "p " << p << endl;
|
//(*testout) << "p " << p << endl;
|
||||||
//(*testout) << "velement " << velement << endl;
|
//(*testout) << "velement " << velement << endl;
|
||||||
|
Loading…
Reference in New Issue
Block a user