mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-12 08:54:53 -05:00
Added suport for new Threshold Pressure behavior
This commit is contained in:
1 parent
796a34bebe
commit
484cb0216f
1 file changed
+9
-3
@@ -19,7 +19,7 @@
|
||||
|
||||
#include <vector>
|
||||
#include <opm/parser/eclipse/EclipseState/SimulationConfig/SimulationConfig.hpp>
|
||||
|
||||
#include <opm/parser/eclipse/Parser/ParseMode.hpp>
|
||||
|
||||
#ifndef OPM_THRESHOLDPRESSURES_HEADER_INCLUDED
|
||||
#define OPM_THRESHOLDPRESSURES_HEADER_INCLUDED
|
||||
@@ -46,10 +46,16 @@ namespace Opm
|
||||
|
||||
|
||||
template <class Grid>
|
||||
std::vector<double> thresholdPressures(EclipseStateConstPtr eclipseState, const Grid& grid)
|
||||
std::vector<double> thresholdPressures(const ParseMode& parseMode ,EclipseStateConstPtr eclipseState, const Grid& grid)
|
||||
{
|
||||
SimulationConfigConstPtr simulationConfig = eclipseState->getSimulationConfig();
|
||||
const std::vector<double>& thresholdPressureTable = simulationConfig->getThresholdPressureTable();
|
||||
const std::vector<double>& thresholdPressureTable;
|
||||
if(simulationConfig->hasThresholdPressure()){
|
||||
thresholdPressureTable = simulationConfig->getThresholdPressureTable();
|
||||
}else{
|
||||
std::string msg = "Inferring threshold pressure from the initial state is not supported.";
|
||||
parseMode.handleError( ParseMode::UNSUPPORTED_INITIAL_THPRES , msg );
|
||||
}
|
||||
|
||||
std::vector<double> thpres_vals;
|
||||
|
||||
|
||||
Reference in new issue
Block a user