Fix checkMixedElement()

This commit is contained in:
Matthias Hochsteger 2023-01-20 16:59:43 +01:00
parent 4710d94fb7
commit aa5dfdfa57

View File

@ -25,15 +25,15 @@ namespace netgen
bool mixed = false; bool mixed = false;
ParallelForRange( Range(seia), [&] (auto myrange) NETGEN_LAMBDA_INLINE ParallelForRange( Range(seia), [&] (auto myrange) NETGEN_LAMBDA_INLINE
{ {
for (SurfaceElementIndex i : myrange) for (auto i : myrange)
{ {
const auto & sel = mesh[i]; const auto & sel = mesh[seia[i]];
if(sel.GetNP() == 3) if(sel.GetNP() == 3)
continue; continue;
for(auto i : Range(sel.GetNP())) for(auto pi : Range(sel.GetNP()))
if(mesh[sel[i]].Type() == SURFACEPOINT) if(mesh[sel[pi]].Type() == SURFACEPOINT)
mixed = true; mixed = true;
} }
}); });