Skip to content

Commit 20eccfe

Browse files
authored
Merge pull request #4401 from roystgnr/fem_context_fix
Don't try to reinit non-SCALAR FE without an Elem
2 parents 7786fa6 + df47b20 commit 20eccfe

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/systems/fem_context.C

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1488,8 +1488,9 @@ void FEMContext::elem_fe_reinit(const std::vector<Point> * const pts)
14881488
{
14891489
if (this->has_elem())
14901490
pr.second->reinit(&(this->get_elem()), pts);
1491-
else
1492-
// If !this->has_elem(), then we assume we are dealing with a SCALAR variable
1491+
// If !this->has_elem(), then still might need to reinit for a
1492+
// SCALAR variable; everything else will depend on an elem
1493+
else if (pr.first.family == SCALAR)
14931494
pr.second->reinit(nullptr);
14941495
}
14951496
}

0 commit comments

Comments
 (0)