mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-30 11:06:55 -06:00
addressing review comments from PR 1622
This commit is contained in:
parent
afcdbcf202
commit
5a5c1bfcd3
@ -1110,7 +1110,6 @@ namespace Opm
|
||||
rates[ Gas ] = well_state.wellRates()[index_of_well_ * number_of_phases_ + pu.phase_pos[ Gas ] ];
|
||||
}
|
||||
|
||||
// TODO: we should have some guard here to avoid some NAN or INF ratios
|
||||
const double bhp = well_state.bhp()[index_of_well_];
|
||||
|
||||
well_state.thp()[index_of_well_] = calculateThpFromBhp(rates, bhp);
|
||||
|
@ -550,7 +550,7 @@ template <typename T>
|
||||
const T* getTable(const std::map<int, T*> tables, int table_id) {
|
||||
auto entry = tables.find(table_id);
|
||||
if (entry == tables.end()) {
|
||||
OPM_THROW(std::invalid_argument, "Nonexistent table " << table_id << " referenced.");
|
||||
OPM_THROW(std::invalid_argument, "Nonexistent VFP table " << table_id << " referenced.");
|
||||
}
|
||||
else {
|
||||
return entry->second;
|
||||
|
@ -996,10 +996,6 @@ namespace Opm
|
||||
} else {
|
||||
if (vfp_properties_->getProd()->getTable(table_id)) {
|
||||
return true;
|
||||
} else {
|
||||
OPM_THROW(std::runtime_error, "VFPPROD table " << std::to_string(table_id) << " is specfied,"
|
||||
<< " for well " << name() << ", while we could not access it during simulation");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1010,10 +1006,6 @@ namespace Opm
|
||||
} else {
|
||||
if (vfp_properties_->getInj()->getTable(table_id)) {
|
||||
return true;
|
||||
} else {
|
||||
OPM_THROW(std::runtime_error, "VFPINJ table " << std::to_string(table_id) << " is specfied,"
|
||||
<< " for well " << name() << ", while we could not access it during simulation");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user