mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +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
|
||||
{
|
||||
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) << "velement " << velement << endl;
|
||||
|
Loading…
Reference in New Issue
Block a user