Merge pull request #5614 from akva2/janitoring_clang

Quell some clang warnings
This commit is contained in:
Bård Skaflestad
2024-09-17 09:13:34 +02:00
committed by GitHub
4 changed files with 10 additions and 6 deletions

View File

@@ -70,9 +70,11 @@ namespace Opm{
void beginIteration(){}; void beginIteration(){};
// add the water rate due to aquifers to the source term. // add the water rate due to aquifers to the source term.
template<class RateVector, class Context> template<class RateVector, class Context>
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<class RateVector> template<class RateVector>
void addToSource(RateVector& rates, unsigned globalSpaceIdx, unsigned timeIdx) const{}; void addToSource(RateVector& /*rates*/, unsigned /*globalSpaceIdx*/,
unsigned /*timeIdx*/) const {}
void endIteration()const{}; void endIteration()const{};
void endTimeStep(){}; void endTimeStep(){};
void endEpisode(){}; void endEpisode(){};

View File

@@ -251,6 +251,8 @@ public:
relpermDiagnostics.diagnosis(vanguard.eclState(), vanguard.cartesianIndexMapper()); relpermDiagnostics.diagnosis(vanguard.eclState(), vanguard.cartesianIndexMapper());
} }
virtual ~FlowProblem() = default;
void prefetch(const Element& elem) const void prefetch(const Element& elem) const
{ pffDofData_.prefetch(elem); } { pffDofData_.prefetch(elem); }

View File

@@ -1147,7 +1147,7 @@ protected:
this->eclWriter_->endRestart(); this->eclWriter_->endRestart();
} }
void readEquilInitialCondition_() void readEquilInitialCondition_() override
{ {
const auto& simulator = this->simulator(); const auto& simulator = this->simulator();

View File

@@ -299,7 +299,7 @@ public:
values.assignNaive(fs); values.assignNaive(fs);
} }
void addToSourceDense(RateVector&, unsigned, unsigned) const void addToSourceDense(RateVector&, unsigned, unsigned) const override
{ {
// we do nothing for now // we do nothing for now
} }
@@ -326,7 +326,7 @@ protected:
// we do nothing here for now // we do nothing here for now
} }
void readEquilInitialCondition_() void readEquilInitialCondition_() override
{ {
throw std::logic_error("Equilibration is not supported by compositional modeling yet"); throw std::logic_error("Equilibration is not supported by compositional modeling yet");
} }
@@ -336,7 +336,7 @@ protected:
throw std::logic_error("Restarting is not supported by compositional modeling yet"); throw std::logic_error("Restarting is not supported by compositional modeling yet");
} }
void readExplicitInitialCondition_() void readExplicitInitialCondition_() override
{ {
readExplicitInitialConditionCompositional_(); readExplicitInitialConditionCompositional_();
} }