We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7786fa6 + df47b20 commit 20eccfeCopy full SHA for 20eccfe
1 file changed
src/systems/fem_context.C
@@ -1488,8 +1488,9 @@ void FEMContext::elem_fe_reinit(const std::vector<Point> * const pts)
1488
{
1489
if (this->has_elem())
1490
pr.second->reinit(&(this->get_elem()), pts);
1491
- else
1492
- // If !this->has_elem(), then we assume we are dealing with a SCALAR variable
+ // If !this->has_elem(), then still might need to reinit for a
+ // SCALAR variable; everything else will depend on an elem
1493
+ else if (pr.first.family == SCALAR)
1494
pr.second->reinit(nullptr);
1495
}
1496
0 commit comments