thread-safe point-search

This commit is contained in:
Joachim Schöberl 2015-11-27 13:09:05 +01:00
parent 27f57d19fa
commit e2edc088da

View File

@ -4526,7 +4526,7 @@ namespace netgen
if (dimension == 2) if (dimension == 2)
{ {
int ne; int ne;
int ps_startelement = 0; // disable global buffering
if(ps_startelement != 0 && ps_startelement <= GetNSE() && PointContainedIn2DElement(p,lami,ps_startelement)) if(ps_startelement != 0 && ps_startelement <= GetNSE() && PointContainedIn2DElement(p,lami,ps_startelement))
return ps_startelement; return ps_startelement;