diff --git a/tests/problems/eclproblem.hh b/tests/problems/eclproblem.hh index 7a3de6fbd..7cc11d8a0 100644 --- a/tests/problems/eclproblem.hh +++ b/tests/problems/eclproblem.hh @@ -627,6 +627,7 @@ private: const auto& sgofTable = sgofTables[tableIdx]; const auto &SwColumn = swofTable.getSwColumn(); + owParams.setKrwSamples(SwColumn, swofTable.getKrwColumn()); owParams.setKrnSamples(SwColumn, swofTable.getKrowColumn()); owParams.setPcnwSamples(SwColumn, swofTable.getPcowColumn()); @@ -643,6 +644,11 @@ private: owParams.finalize(); goParams.finalize(); + // compute the connate water saturation. In Eclipse decks that is defined as + // the first saturation value of the SWOF keyword. + Scalar Swco = SwColumn.front(); + materialParams_[tableIdx].setConnateWaterSaturation(Swco); + materialParams_[tableIdx].setOilWaterParams(owParams); materialParams_[tableIdx].setGasOilParams(goParams);