Fix compilation errors for pyramid elements with MFEM_THREAD_SAFE

This commit is contained in:
Will Pazner
2025-04-04 09:19:12 -07:00
parent c5363ebaaf
commit 43f8ea13dd
2 changed files with 9 additions and 0 deletions
+7
View File
@@ -1822,6 +1822,13 @@ void H1_BergotPyramidElement::CalcDShape(const IntegrationPoint &ip,
#ifdef MFEM_THREAD_SAFE
DenseMatrix du(dof, dim);
Vector shape_x(order+1);
Vector shape_y(order+1);
Vector shape_z(order+1);
Vector dshape_x(order+1);
Vector dshape_y(order+1);
Vector dshape_z(order+1);
Vector dshape_z_dt(order+1);
#endif
real_t x = (ip.z < 1.0) ? (ip.x / (1.0 - ip.z)) : 0.0;
real_t y = (ip.z < 1.0) ? (ip.y / (1.0 - ip.z)) : 0.0;