mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Use updated version of opm-common as submodule
* Adjustments to build system for opm-common * Add opm-common as submodule * Disable use of unity build for opm-common
This commit is contained in:
@@ -883,11 +883,11 @@ RimVfpDefines::FlowingPhaseType RimVfpPlot::getFlowingPhaseType( const Opm::VFPP
|
||||
{
|
||||
switch ( table.getFloType() )
|
||||
{
|
||||
case Opm::VFPProdTable::FLO_OIL:
|
||||
case Opm::VFPProdTable::FLO_TYPE::FLO_OIL:
|
||||
return RimVfpDefines::FlowingPhaseType::OIL;
|
||||
case Opm::VFPProdTable::FLO_GAS:
|
||||
case Opm::VFPProdTable::FLO_TYPE::FLO_GAS:
|
||||
return RimVfpDefines::FlowingPhaseType::GAS;
|
||||
case Opm::VFPProdTable::FLO_LIQ:
|
||||
case Opm::VFPProdTable::FLO_TYPE::FLO_LIQ:
|
||||
return RimVfpDefines::FlowingPhaseType::LIQUID;
|
||||
default:
|
||||
return RimVfpDefines::FlowingPhaseType::INVALID;
|
||||
@@ -901,11 +901,11 @@ RimVfpDefines::FlowingPhaseType RimVfpPlot::getFlowingPhaseType( const Opm::VFPI
|
||||
{
|
||||
switch ( table.getFloType() )
|
||||
{
|
||||
case Opm::VFPInjTable::FLO_OIL:
|
||||
case Opm::VFPInjTable::FLO_TYPE::FLO_OIL:
|
||||
return RimVfpDefines::FlowingPhaseType::OIL;
|
||||
case Opm::VFPInjTable::FLO_GAS:
|
||||
case Opm::VFPInjTable::FLO_TYPE::FLO_GAS:
|
||||
return RimVfpDefines::FlowingPhaseType::GAS;
|
||||
case Opm::VFPInjTable::FLO_WAT:
|
||||
case Opm::VFPInjTable::FLO_TYPE::FLO_WAT:
|
||||
return RimVfpDefines::FlowingPhaseType::WATER;
|
||||
default:
|
||||
return RimVfpDefines::FlowingPhaseType::INVALID;
|
||||
@@ -919,11 +919,11 @@ RimVfpDefines::FlowingGasFractionType RimVfpPlot::getFlowingGasFractionType( con
|
||||
{
|
||||
switch ( table.getGFRType() )
|
||||
{
|
||||
case Opm::VFPProdTable::GFR_GOR:
|
||||
case Opm::VFPProdTable::GFR_TYPE::GFR_GOR:
|
||||
return RimVfpDefines::FlowingGasFractionType::GOR;
|
||||
case Opm::VFPProdTable::GFR_GLR:
|
||||
case Opm::VFPProdTable::GFR_TYPE::GFR_GLR:
|
||||
return RimVfpDefines::FlowingGasFractionType::GLR;
|
||||
case Opm::VFPProdTable::GFR_OGR:
|
||||
case Opm::VFPProdTable::GFR_TYPE::GFR_OGR:
|
||||
return RimVfpDefines::FlowingGasFractionType::OGR;
|
||||
default:
|
||||
return RimVfpDefines::FlowingGasFractionType::INVALID;
|
||||
@@ -937,11 +937,11 @@ RimVfpDefines::FlowingWaterFractionType RimVfpPlot::getFlowingWaterFractionType(
|
||||
{
|
||||
switch ( table.getWFRType() )
|
||||
{
|
||||
case Opm::VFPProdTable::WFR_WOR:
|
||||
case Opm::VFPProdTable::WFR_TYPE::WFR_WOR:
|
||||
return RimVfpDefines::FlowingWaterFractionType::WOR;
|
||||
case Opm::VFPProdTable::WFR_WCT:
|
||||
case Opm::VFPProdTable::WFR_TYPE::WFR_WCT:
|
||||
return RimVfpDefines::FlowingWaterFractionType::WCT;
|
||||
case Opm::VFPProdTable::WFR_WGR:
|
||||
case Opm::VFPProdTable::WFR_TYPE::WFR_WGR:
|
||||
return RimVfpDefines::FlowingWaterFractionType::WGR;
|
||||
default:
|
||||
return RimVfpDefines::FlowingWaterFractionType::INVALID;
|
||||
|
||||
@@ -26,8 +26,8 @@
|
||||
|
||||
#include <QPointer>
|
||||
|
||||
#include "opm/parser/eclipse/EclipseState/Schedule/VFPInjTable.hpp"
|
||||
#include "opm/parser/eclipse/EclipseState/Schedule/VFPProdTable.hpp"
|
||||
#include "opm/input/eclipse/Schedule/VFPInjTable.hpp"
|
||||
#include "opm/input/eclipse/Schedule/VFPProdTable.hpp"
|
||||
|
||||
class RiuPlotWidget;
|
||||
class VfpPlotData;
|
||||
|
||||
@@ -21,8 +21,9 @@
|
||||
#include "cafPdmUiItem.h"
|
||||
#include "cafUtils.h"
|
||||
|
||||
#include "opm/parser/eclipse/Parser/Parser.hpp"
|
||||
#include "opm/parser/eclipse/Parser/ParserKeywords/V.hpp"
|
||||
#include "opm/input/eclipse/Deck/Deck.hpp"
|
||||
#include "opm/input/eclipse/Parser/Parser.hpp"
|
||||
#include "opm/input/eclipse/Parser/ParserKeywords/V.hpp"
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
@@ -33,8 +34,14 @@ std::vector<Opm::VFPInjTable> RimVfpTableExtractor::extractVfpInjectionTables( c
|
||||
|
||||
try
|
||||
{
|
||||
Opm::Parser parser;
|
||||
auto deck = parser.parseFile( filename );
|
||||
Opm::Parser parser( false );
|
||||
const ::Opm::ParserKeywords::VFPINJ kw1;
|
||||
const ::Opm::ParserKeywords::VFPIDIMS kw2;
|
||||
|
||||
parser.addParserKeyword( kw1 );
|
||||
parser.addParserKeyword( kw2 );
|
||||
|
||||
auto deck = parser.parseFile( filename );
|
||||
|
||||
std::string myKeyword = "VFPINJ";
|
||||
auto keywordList = deck.getKeywordList( myKeyword );
|
||||
@@ -75,8 +82,12 @@ std::vector<Opm::VFPProdTable> RimVfpTableExtractor::extractVfpProductionTables(
|
||||
|
||||
try
|
||||
{
|
||||
Opm::Parser parser;
|
||||
auto deck = parser.parseFile( filename );
|
||||
Opm::Parser parser( false );
|
||||
const ::Opm::ParserKeywords::VFPPROD kw1;
|
||||
|
||||
parser.addParserKeyword( kw1 );
|
||||
|
||||
auto deck = parser.parseFile( filename );
|
||||
|
||||
std::string myKeyword = "VFPPROD";
|
||||
auto keywordList = deck.getKeywordList( myKeyword );
|
||||
@@ -97,7 +108,8 @@ std::vector<Opm::VFPProdTable> RimVfpTableExtractor::extractVfpProductionTables(
|
||||
}
|
||||
}
|
||||
|
||||
Opm::VFPProdTable table( *kw, unitSystem );
|
||||
bool gaslift_opt_active = false;
|
||||
Opm::VFPProdTable table( *kw, gaslift_opt_active, unitSystem );
|
||||
tables.push_back( table );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "opm/parser/eclipse/EclipseState/Schedule/VFPInjTable.hpp"
|
||||
#include "opm/parser/eclipse/EclipseState/Schedule/VFPProdTable.hpp"
|
||||
#include "opm/input/eclipse/Schedule/VFPInjTable.hpp"
|
||||
#include "opm/input/eclipse/Schedule/VFPProdTable.hpp"
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user