diff --git a/flowexperimental/comp/flowexp_comp.cpp b/flowexperimental/comp/flowexp_comp.cpp index 6cb06be16bd..997232fd508 100644 --- a/flowexperimental/comp/flowexp_comp.cpp +++ b/flowexperimental/comp/flowexp_comp.cpp @@ -70,9 +70,11 @@ namespace Opm{ void beginIteration(){}; // add the water rate due to aquifers to the source term. template - void addToSource(RateVector& rates, const Context& context, unsigned spaceIdx, unsigned timeIdx) const{}; + void addToSource(RateVector& /*rates*/, const Context& /*context*/, + unsigned /*spaceIdx*/, unsigned /*timeIdx*/) const {} template - void addToSource(RateVector& rates, unsigned globalSpaceIdx, unsigned timeIdx) const{}; + void addToSource(RateVector& /*rates*/, unsigned /*globalSpaceIdx*/, + unsigned /*timeIdx*/) const {} void endIteration()const{}; void endTimeStep(){}; void endEpisode(){}; diff --git a/opm/simulators/flow/FlowProblem.hpp b/opm/simulators/flow/FlowProblem.hpp index 0e423a00c0c..a9d359bb7c8 100644 --- a/opm/simulators/flow/FlowProblem.hpp +++ b/opm/simulators/flow/FlowProblem.hpp @@ -251,6 +251,8 @@ class FlowProblem : public GetPropType relpermDiagnostics.diagnosis(vanguard.eclState(), vanguard.cartesianIndexMapper()); } + virtual ~FlowProblem() = default; + void prefetch(const Element& elem) const { pffDofData_.prefetch(elem); } diff --git a/opm/simulators/flow/FlowProblemBlackoil.hpp b/opm/simulators/flow/FlowProblemBlackoil.hpp index 862381bf761..f0ec0309011 100644 --- a/opm/simulators/flow/FlowProblemBlackoil.hpp +++ b/opm/simulators/flow/FlowProblemBlackoil.hpp @@ -1147,7 +1147,7 @@ class FlowProblemBlackoil : public FlowProblem this->eclWriter_->endRestart(); } - void readEquilInitialCondition_() + void readEquilInitialCondition_() override { const auto& simulator = this->simulator(); diff --git a/opm/simulators/flow/FlowProblemComp.hpp b/opm/simulators/flow/FlowProblemComp.hpp index 42f1871f45b..ac447e68a61 100644 --- a/opm/simulators/flow/FlowProblemComp.hpp +++ b/opm/simulators/flow/FlowProblemComp.hpp @@ -299,7 +299,7 @@ class FlowProblemComp : public FlowProblem values.assignNaive(fs); } - void addToSourceDense(RateVector&, unsigned, unsigned) const + void addToSourceDense(RateVector&, unsigned, unsigned) const override { // we do nothing for now } @@ -326,7 +326,7 @@ class FlowProblemComp : public FlowProblem // we do nothing here for now } - void readEquilInitialCondition_() + void readEquilInitialCondition_() override { throw std::logic_error("Equilibration is not supported by compositional modeling yet"); } @@ -336,7 +336,7 @@ class FlowProblemComp : public FlowProblem throw std::logic_error("Restarting is not supported by compositional modeling yet"); } - void readExplicitInitialCondition_() + void readExplicitInitialCondition_() override { readExplicitInitialConditionCompositional_(); }