From 8157f930c7256c8a99037b4d4620ee2d5c810765 Mon Sep 17 00:00:00 2001 From: Kjetil Olsen Lye Date: Mon, 20 Jan 2025 21:39:32 +0100 Subject: [PATCH] Fixes for having a more generic LookUpData class. --- opm/simulators/flow/FlowGenericProblem.hpp | 2 +- opm/simulators/flow/Transmissibility_impl.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/opm/simulators/flow/FlowGenericProblem.hpp b/opm/simulators/flow/FlowGenericProblem.hpp index cddb75992c..b69cebc639 100644 --- a/opm/simulators/flow/FlowGenericProblem.hpp +++ b/opm/simulators/flow/FlowGenericProblem.hpp @@ -367,7 +367,7 @@ class FlowGenericProblem // is inherited from its parent or equivalent (when has no parent) cell on level zero. std::function lookupIdxOnLevelZeroAssigner_() { - return [this](unsigned elemIdx) { return lookUpData_.template getFieldPropIdx(elemIdx);}; + return [this](unsigned elemIdx) { return lookUpData_.template getFieldPropIdx(elemIdx);}; } private: diff --git a/opm/simulators/flow/Transmissibility_impl.hpp b/opm/simulators/flow/Transmissibility_impl.hpp index 8d38778ec6..0433d13428 100644 --- a/opm/simulators/flow/Transmissibility_impl.hpp +++ b/opm/simulators/flow/Transmissibility_impl.hpp @@ -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(inside.elemIdx); + template getFieldPropCartesianIdx(inside.elemIdx); auto computeHalf = [this, &faceAreaNormal, &inside, &outside] (const auto& halfComputer, @@ -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(outside.elemIdx); + template getFieldPropCartesianIdx(outside.elemIdx); // we only need to calculate a face's transmissibility // once...