20 #ifndef OPM_GLOBAL_WELL_INFO_HEADER_INCLUDED
21 #define OPM_GLOBAL_WELL_INFO_HEADER_INCLUDED
28 #include <opm/input/eclipse/Schedule/Well/Well.hpp>
60 template <
typename Comm>
61 void communicate(
const Comm& comm) {
62 auto size = this->m_in_injecting_group.size();
63 comm.sum( this->m_in_injecting_group.data(), size);
64 comm.sum( this->m_in_producing_group.data(), size);
69 GlobalWellInfo(
const Schedule& sched, std::size_t report_step,
const std::vector<Well>& local_wells);
70 bool in_producing_group(
const std::string& wname)
const;
71 bool in_injecting_group(
const std::string& wname)
const;
72 std::size_t well_index(
const std::string& wname)
const;
73 const std::string& well_name(std::size_t well_index)
const;
74 void update_injector(std::size_t well_index, Well::Status well_status, Well::InjectorCMode injection_cmode);
75 void update_producer(std::size_t well_index, Well::Status well_status, Well::ProducerCMode production_cmode);
79 std::vector<std::size_t> local_map;
81 std::map<std::string, std::size_t> name_map;
82 std::vector<int> m_in_injecting_group;
83 std::vector<int> m_in_producing_group;
Definition: GlobalWellInfo.hpp:52
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition: BlackoilPhases.hpp:27