mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Merge pull request #4915 from OPM/flow-diag-improve-robustness
Improve robustness when importing PVT data
This commit is contained in:
commit
13bb85ccd5
@ -608,6 +608,11 @@ fromECLOutput(const ECLInitFileData& init)
|
|||||||
raw.numCols = 5; // [ x, 1/B, 1/(B*mu), d(1/B)/dx, d(1/(B*mu))/dx ]
|
raw.numCols = 5; // [ x, 1/B, 1/(B*mu), d(1/B)/dx, d(1/(B*mu))/dx ]
|
||||||
raw.numTables = tabdims[ TABDIMS_NTPVTG_ITEM ]; // # PV{D,T}G tables
|
raw.numTables = tabdims[ TABDIMS_NTPVTG_ITEM ]; // # PV{D,T}G tables
|
||||||
|
|
||||||
|
if (raw.numTables == 0)
|
||||||
|
{
|
||||||
|
return GPtr{};
|
||||||
|
}
|
||||||
|
|
||||||
const auto& lh = init.keywordData<bool>(LOGIHEAD_KW);
|
const auto& lh = init.keywordData<bool>(LOGIHEAD_KW);
|
||||||
|
|
||||||
if (lh[ LOGIHEAD_RV_INDEX ]) {
|
if (lh[ LOGIHEAD_RV_INDEX ]) {
|
||||||
|
@ -809,6 +809,11 @@ fromECLOutput(const ECLInitFileData& init)
|
|||||||
raw.numCols = 5; // [ Po, 1/B, 1/(B*mu), d(1/B)/dPo, d(1/(B*mu))/dPo ]
|
raw.numCols = 5; // [ Po, 1/B, 1/(B*mu), d(1/B)/dPo, d(1/(B*mu))/dPo ]
|
||||||
raw.numTables = tabdims[ TABDIMS_NTPVTO_ITEM ]; // # PVTO tables
|
raw.numTables = tabdims[ TABDIMS_NTPVTO_ITEM ]; // # PVTO tables
|
||||||
|
|
||||||
|
if (raw.numTables == 0)
|
||||||
|
{
|
||||||
|
return OPtr{};
|
||||||
|
}
|
||||||
|
|
||||||
if (lh[ LOGIHEAD_RS_INDEX ]) {
|
if (lh[ LOGIHEAD_RS_INDEX ]) {
|
||||||
// Dissolved gas flag set => Live Oil.
|
// Dissolved gas flag set => Live Oil.
|
||||||
//
|
//
|
||||||
|
@ -352,6 +352,11 @@ fromECLOutput(const ECLInitFileData& init)
|
|||||||
raw.numCols = 5; // [ Pw, 1/B, Cw, 1/(B*mu), Cw - Cv ]
|
raw.numCols = 5; // [ Pw, 1/B, Cw, 1/(B*mu), Cw - Cv ]
|
||||||
raw.numTables = tabdims[ TABDIMS_NTPVTW_ITEM ]; // # PVTW tables
|
raw.numTables = tabdims[ TABDIMS_NTPVTW_ITEM ]; // # PVTW tables
|
||||||
|
|
||||||
|
if (raw.numTables == 0)
|
||||||
|
{
|
||||||
|
return WPtr{};
|
||||||
|
}
|
||||||
|
|
||||||
// Extract Full Table
|
// Extract Full Table
|
||||||
{
|
{
|
||||||
const auto nTabElem =
|
const auto nTabElem =
|
||||||
|
Loading…
Reference in New Issue
Block a user