Fix for reading wells, verified to be working on case TestCase_LGR_Amalg

806a18a137
p4#: 21153
This commit is contained in:
Magne Sjaastad 2013-04-07 16:22:39 +02:00
parent b0c3bc5fba
commit 1b07630239

View File

@ -169,7 +169,7 @@ static int well_state_get_lgr_well_nr( const well_state_type * well_state , cons
if (ecl_file_has_kw( ecl_file , ZWEL_KW)) {
ecl_rsthead_type * header = ecl_rsthead_alloc( ecl_file ); //
const ecl_kw_type * zwel_kw = ecl_file_iget_named_kw( ecl_file , ZWEL_KW , 0);
int num_wells = ecl_kw_get_size( zwel_kw );
int num_wells = header->nwells;
well_nr = 0;
while (true) {
bool found = false;