opm-simulators/opm/core
Bård Skaflestad 0c599b8868 Fix well classification that was only correct by accident
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).
2012-10-24 21:12:29 +02:00
..
fluid Fix comment. 2012-10-10 14:12:38 +02:00
linalg Disable warning for using DUNE's FieldVector::size 2012-09-24 00:21:06 +02:00
pressure Update WellState::perfPress() after pressure solve. 2012-10-01 16:40:10 +02:00
simulator Added perfPress() to WellState. 2012-10-01 16:39:35 +02:00
transport/reorder Fix output in case of LAPACK error. 2012-10-17 12:40:43 +02:00
utility Merge remote-tracking branch 'upstream/master' into ert 2012-10-12 00:43:51 +02:00
wells Fix well classification that was only correct by accident 2012-10-24 21:12:29 +02:00
newwells.h New function clone_wells() 2012-10-05 10:14:44 +02:00
well.h Document the obsolescent well representation. 2012-06-25 00:55:50 +02:00