Skip to content

Commit

Permalink
Fixes for having a more generic LookUpData class.
Browse files Browse the repository at this point in the history
  • Loading branch information
kjetilly committed Jan 20, 2025
1 parent 2f75635 commit 8157f93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion opm/simulators/flow/FlowGenericProblem.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ class FlowGenericProblem
// is inherited from its parent or equivalent (when has no parent) cell on level zero.
std::function<unsigned(unsigned)> lookupIdxOnLevelZeroAssigner_()
{
return [this](unsigned elemIdx) { return lookUpData_.template getFieldPropIdx<Grid>(elemIdx);};
return [this](unsigned elemIdx) { return lookUpData_.template getFieldPropIdx<unsigned, Grid>(elemIdx);};
}

private:
Expand Down
4 changes: 2 additions & 2 deletions opm/simulators/flow/Transmissibility_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ update(bool global, const TransUpdateQuantities update_quantities,
// Get the Cartesian index of the origin cells (parent or equivalent cell on level zero),
// for CpGrid with LGRs. For general grids and no LGRs, get the usual Cartesian Index.
inside.cartElemIdx = this->lookUpCartesianData_.
template getFieldPropCartesianIdx<Grid>(inside.elemIdx);
template getFieldPropCartesianIdx<decltype(inside.elemIdx), Grid>(inside.elemIdx);

auto computeHalf = [this, &faceAreaNormal, &inside, &outside]
(const auto& halfComputer,
Expand Down Expand Up @@ -369,7 +369,7 @@ update(bool global, const TransUpdateQuantities update_quantities,
// Get the Cartesian index of the origin cells (parent or equivalent cell on level zero),
// for CpGrid with LGRs. For general grids and no LGRs, get the usual Cartesian Index.
outside.cartElemIdx = this->lookUpCartesianData_.
template getFieldPropCartesianIdx<Grid>(outside.elemIdx);
template getFieldPropCartesianIdx<decltype(outside.elemIdx), Grid>(outside.elemIdx);

// we only need to calculate a face's transmissibility
// once...
Expand Down

0 comments on commit 8157f93

Please sign in to comment.