diff --git a/dumux/common/fvproblem.hh b/dumux/common/fvproblem.hh index cb8c6522bfc3261e841901b7fd87340fabe876c6..9e213e57883ed6c7bb102957a00cac605c806f58 100644 --- a/dumux/common/fvproblem.hh +++ b/dumux/common/fvproblem.hh @@ -393,7 +393,7 @@ public: { ResidualVector source(0); auto scvIdx = scv.indexInElement(); - auto key = std::make_pair(fvGridGeometry_->gridView().indexSet().index(element), scvIdx); + auto key = std::make_pair(fvGridGeometry_->elementMapper().index(element), scvIdx); if (pointSourceMap_.count(key)) { // call the solDependent function. Herein the user might fill/add values to the point sources