added initial input reading for group control (GRUP-keyword)

This commit is contained in:
Kjetil Olsen Lye 2012-03-27 09:23:24 +02:00
parent bceee40b4f
commit 040be401e0
2 changed files with 6 additions and 1 deletions

View File

@ -342,6 +342,8 @@ namespace Opm
well_data[wix].control = BHP;
well_data[wix].target = wconinjes.wconinje[kw].THP_limit_;
break;
case 4:
break;
default:
THROW("Unknown well control mode; WCONIJE = "
<< wconinjes.wconinje[kw].control_mode_
@ -411,6 +413,9 @@ namespace Opm
well_data[wix].control = BHP;
well_data[wix].target = wconprods.wconprod[kw].THP_limit_;
break;
case 7:
well_data[wix].control = GRUP;
break;
default:
THROW("Unknown well control mode; WCONPROD = "
<< wconprods.wconprod[kw].control_mode_

View File

@ -25,7 +25,7 @@ extern "C" {
#endif
enum well_type { INJECTOR, PRODUCER };
enum control_type { BHP , RATE };
enum control_type { BHP , RATE, GRUP };
enum surface_component { WATER = 0, OIL = 1, GAS = 2 };