diff --git a/opm/simulators/flow/BlackoilModelEbos.hpp b/opm/simulators/flow/BlackoilModelEbos.hpp index 3eb5a1fb3..d2706f766 100644 --- a/opm/simulators/flow/BlackoilModelEbos.hpp +++ b/opm/simulators/flow/BlackoilModelEbos.hpp @@ -1114,7 +1114,7 @@ namespace Opm { template typename std::enable_if::value, bool>::type - isNumericalAquiferCell(const G& grid, const T& elem) + isNumericalAquiferCell(const G&, const T&) { return false; } diff --git a/opm/simulators/linalg/bda/opencl/Preconditioner.hpp b/opm/simulators/linalg/bda/opencl/Preconditioner.hpp index f0af75d25..8c3c1da21 100644 --- a/opm/simulators/linalg/bda/opencl/Preconditioner.hpp +++ b/opm/simulators/linalg/bda/opencl/Preconditioner.hpp @@ -60,6 +60,8 @@ public: static std::unique_ptr create(PreconditionerType type, int verbosity, ILUReorder opencl_ilu_reorder); + virtual ~Preconditioner() = default; + // nested Preconditioners might need to override this virtual void setOpencl(std::shared_ptr& context, std::shared_ptr& queue); diff --git a/opm/simulators/wells/BlackoilWellModelGeneric.cpp b/opm/simulators/wells/BlackoilWellModelGeneric.cpp index 011547eb4..294f4834d 100644 --- a/opm/simulators/wells/BlackoilWellModelGeneric.cpp +++ b/opm/simulators/wells/BlackoilWellModelGeneric.cpp @@ -2390,14 +2390,14 @@ guideRateUpdateIsNeeded(const int reportStepIdx) const { }); if (!need_update && this->report_step_starts_) { const auto& events = this->schedule()[reportStepIdx].wellgroup_events(); - const auto effective_events_mask = ScheduleEvents::WELL_STATUS_CHANGE + constexpr auto effective_events_mask = ScheduleEvents::WELL_STATUS_CHANGE + ScheduleEvents::INJECTION_TYPE_CHANGED + ScheduleEvents::WELL_SWITCHED_INJECTOR_PRODUCER + ScheduleEvents::NEW_WELL; need_update = std::any_of(this->well_container_generic_.begin(), this->well_container_generic_.end(), - [&events, effective_events_mask](const WellInterfaceGeneric* well) + [&events](const WellInterfaceGeneric* well) { return events.hasEvent(well->name(), effective_events_mask); });