ASMu2D::getNoBoundaryElms: remove unnecessary if

the conditions were wrong and in any case the indices
are checked further up
This commit is contained in:
Arne Morten Kvarving 2023-10-24 14:01:52 +02:00
parent d1356a07cf
commit 4f6bae7992

View File

@ -1027,8 +1027,7 @@ size_t ASMu2D::getNoBoundaryElms (char lIndex, char ldim) const
return 1;
std::vector<LR::Element*> edgeElms;
if (lIndex > 0 || lIndex <= 4)
lrspline->getEdgeElements(edgeElms, getEdgeEnum(lIndex));
lrspline->getEdgeElements(edgeElms, getEdgeEnum(lIndex));
return edgeElms.size();
}