mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-08-02 11:09:18 -05:00
0c599b88685262be6a8b2ee16e8db681cc0d5f6d
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).
Description
Simulator programs and utilities for automatic differentiation.
70 MiB
Languages
C++
78.3%
ECL
17.7%
CMake
1.8%
Cuda
1.2%
Shell
0.5%
Other
0.5%