mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-18 21:43:27 -06:00
Fxied bug in table-container use.
This commit is contained in:
parent
adb333177d
commit
d54899ba07
@ -290,11 +290,10 @@ namespace Opm
|
||||
if (deck->hasKeyword("DISGAS")) {
|
||||
const TableContainer& rsvdTables = tables->getRsvdTables();
|
||||
for (size_t i = 0; i < rec.size(); ++i) {
|
||||
const RsvdTable& rsvdTable = rsvdTables.getTable<RsvdTable>(i);
|
||||
const int cell = *(eqlmap.cells(i).begin());
|
||||
if (rec[i].live_oil_table_index > 0) {
|
||||
if (rsvdTables.size() > 0 && size_t(rec[i].live_oil_table_index) <= rsvdTables.size()) {
|
||||
|
||||
const RsvdTable& rsvdTable = rsvdTables.getTable<RsvdTable>(i);
|
||||
rs_func_.push_back(std::make_shared<Miscibility::RsVD>(props,
|
||||
cell,
|
||||
rsvdTable.getDepthColumn(),
|
||||
|
Loading…
Reference in New Issue
Block a user