Skip to content

Commit

Permalink
Fix compute thread for ElemAuxBcs (idaholab#8444).
Browse files Browse the repository at this point in the history
  • Loading branch information
lindsayad authored and rwcarlsen committed Feb 24, 2017
1 parent 54d6bed commit 369a344
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions framework/src/base/ComputeElemAuxBcsThread.C
Expand Up @@ -71,6 +71,13 @@ ComputeElemAuxBcsThread::operator() (const ConstBndElemRange & range)
{
_problem.prepare(elem, _tid);
_problem.reinitElemFace(elem, side, boundary_id, _tid);
std::set<unsigned int> needed_mat_props;
for (const auto & aux : iter->second)
{
const std::set<unsigned int> & mp_deps = aux->getMatPropDependencies();
needed_mat_props.insert(mp_deps.begin(), mp_deps.end());
}
_problem.setActiveMaterialProperties(needed_mat_props, _tid);

if (_need_materials)
{
Expand Down Expand Up @@ -102,6 +109,7 @@ ComputeElemAuxBcsThread::operator() (const ConstBndElemRange & range)
}
}
}
_problem.clearActiveMaterialProperties(_tid);
}

void
Expand Down

0 comments on commit 369a344

Please sign in to comment.