mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-18 21:43:27 -06:00
0c599b8868
Specifically, the tests if (!wells->type[self_index] == INJECTOR) if (!wells->type[self_index] == PRODUCER) produced the expected results *only* because INJECTOR==0 and PRODUCER==1 in the WellType enumeration, thus (!INJECTOR == PRODUCER) and (!PRODUCER == INJECTOR). Installing the (much) more appropriate if (wells->type[self_index] != INJECTOR) if (wells->type[self_index] != PRODUCER) is not only more readable, it is also future-proof and scales better if we ever introduce new WellTypes (e.g., a MONITOR). |
||
---|---|---|
.. | ||
InjectionSpecification.cpp | ||
InjectionSpecification.hpp | ||
ProductionSpecification.cpp | ||
ProductionSpecification.hpp | ||
WellCollection.cpp | ||
WellCollection.hpp | ||
WellsGroup.cpp | ||
WellsGroup.hpp | ||
WellsManager.cpp | ||
WellsManager.hpp |