Merge pull request #5843 from totto82/fastEnergy

Use new linearizer for blackoil + thermal
This commit is contained in:
Atgeirr Flø Rasmussen 2025-01-09 06:55:44 +01:00 committed by GitHub
commit 09acc593dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,6 +22,8 @@
#include <opm/grid/CpGrid.hpp>
#include <opm/simulators/flow/SimulatorFullyImplicitBlackoil.hpp>
#include <opm/simulators/flow/Main.hpp>
#include <opm/models/blackoil/blackoillocalresidualtpfa.hh>
#include <opm/models/discretization/common/tpfalinearizer.hh>
namespace Opm {
namespace Properties {
@ -35,6 +37,12 @@ template<class TypeTag>
struct EnableEnergy<TypeTag, TTag::FlowEnergyProblem> {
static constexpr bool value = true;
};
template<class TypeTag>
struct Linearizer<TypeTag, TTag::FlowEnergyProblem> { using type = TpfaLinearizer<TypeTag>; };
template<class TypeTag>
struct LocalResidual<TypeTag, TTag::FlowEnergyProblem> { using type = BlackOilLocalResidualTPFA<TypeTag>; };
}}
namespace Opm {