mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-12 08:54:53 -05:00
opm-166: Changes after review
This commit is contained in:
1 parent
33078d00e3
commit
761b9b4a41
1 file changed
+3
-3
@@ -49,14 +49,14 @@ namespace Opm
|
|||||||
std::vector<double> thresholdPressures(EclipseStateConstPtr eclipseState, const Grid& grid)
|
std::vector<double> thresholdPressures(EclipseStateConstPtr eclipseState, const Grid& grid)
|
||||||
{
|
{
|
||||||
SimulationConfigConstPtr simulationConfig = eclipseState->getSimulationConfig();
|
SimulationConfigConstPtr simulationConfig = eclipseState->getSimulationConfig();
|
||||||
std::vector<double> thresholdPressureTable = simulationConfig->getThresholdPressureTable();
|
const std::vector<double>& thresholdPressureTable = simulationConfig->getThresholdPressureTable();
|
||||||
|
|
||||||
std::vector<double> thpres_vals;
|
std::vector<double> thpres_vals;
|
||||||
|
|
||||||
if (thresholdPressureTable.size() > 0) {
|
if (thresholdPressureTable.size() > 0) {
|
||||||
|
|
||||||
std::shared_ptr<GridProperty<int>> gridProperty = eclipseState->getIntGridProperty("EQLNUM");
|
std::shared_ptr<GridProperty<int>> eqlnum = eclipseState->getIntGridProperty("EQLNUM");
|
||||||
auto eqlnumData = gridProperty->getData();
|
auto eqlnumData = eqlnum->getData();
|
||||||
int maxEqlnum = *std::max_element(eqlnumData.begin(), eqlnumData.end());
|
int maxEqlnum = *std::max_element(eqlnumData.begin(), eqlnumData.end());
|
||||||
|
|
||||||
// Set values for each face.
|
// Set values for each face.
|
||||||
|
|||||||
Reference in new issue
Block a user