mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
commit
c438a135f3
@ -1114,7 +1114,7 @@ namespace Opm {
|
||||
|
||||
template<class G, class T>
|
||||
typename std::enable_if<!std::is_same<G,Dune::CpGrid>::value, bool>::type
|
||||
isNumericalAquiferCell(const G& grid, const T& elem)
|
||||
isNumericalAquiferCell(const G&, const T&)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -60,6 +60,8 @@ public:
|
||||
|
||||
static std::unique_ptr<Preconditioner> 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<cl::Context>& context, std::shared_ptr<cl::CommandQueue>& queue);
|
||||
|
||||
|
@ -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);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user