addressing review comments from PR 1622

This commit is contained in:
Kai Bao 2018-11-14 12:32:11 +01:00
parent afcdbcf202
commit 5a5c1bfcd3
3 changed files with 1 additions and 10 deletions

View File

@ -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);

View File

@ -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;

View File

@ -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;
}
}
}