fixed: element index should be 0 based

This commit is contained in:
Arne Morten Kvarving
2021-12-21 19:03:48 +01:00
parent 4d4ce8e147
commit 795bb64b9d

View File

@@ -1162,7 +1162,7 @@ bool ASMu3D::integrate (Integrand& integrand,
// Fetch basis function derivatives at current integration point
if (integrand.getIntegrandType() & Integrand::SECOND_DERIVATIVES)
#pragma omp critical
this->evaluateBasis(iel, fe, dNdu, d2Ndu2);
this->evaluateBasis(iel-1, fe, dNdu, d2Ndu2);
else
{
// Extract bezier basis functions