Added further checks for well conditions. Fixed a small bug in reading WCONPROD
This commit is contained in:
@@ -1468,7 +1468,7 @@ struct WCONPROD : public SpecialBase
|
||||
double_data[7] = wconprod_line.VFP_table_number_;
|
||||
double_data[8] = wconprod_line.artif_lift_quantity_;
|
||||
const int num_to_read = 9;
|
||||
readDefaultedVectorData(is, double_data, num_to_read);
|
||||
int num_read = readDefaultedVectorData(is, double_data, num_to_read);
|
||||
wconprod_line.oil_max_rate_ = double_data[0];
|
||||
wconprod_line.water_max_rate_ = double_data[1];
|
||||
wconprod_line.gas_max_rate_ = double_data[2];
|
||||
@@ -1480,7 +1480,9 @@ struct WCONPROD : public SpecialBase
|
||||
wconprod_line.artif_lift_quantity_ = double_data[8];
|
||||
wconprod.push_back(wconprod_line);
|
||||
|
||||
ignoreSlashLine(is);
|
||||
if(num_to_read == num_read) {
|
||||
ignoreSlashLine(is);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user