Account for the renaming in the wellsManager

Shut is renamed to stopped in the wellsManager in order to better
reflect the name logic in the deck. This PR implements the nessesary
change in opm-autodiff
This commit is contained in:
Tor Harald Sandve 2014-12-19 07:18:36 +01:00
parent c04351d4ac
commit 5572a14c20

View File

@ -75,7 +75,7 @@ namespace Opm
mapentry_t& wellMapEntry = wellMap_[ name ]; mapentry_t& wellMapEntry = wellMap_[ name ];
wellMapEntry[ 0 ] = w ; wellMapEntry[ 0 ] = w ;
wellMapEntry[ 1 ] = wells->well_connpos[w ] ; wellMapEntry[ 1 ] = wells->well_connpos[w ] ;
if (well_controls_well_is_shut(ctrl)) { if (well_controls_well_is_stopped(ctrl)) {
// Shut well: perfphaserates_ are all zero. // Shut well: perfphaserates_ are all zero.
} else { } else {
// Open well: Initialize perfphaserates_ to well // Open well: Initialize perfphaserates_ to well