From ac36ad5ad1c7c34bd8531e410a25b1615058113a Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Thu, 6 Apr 2017 14:39:30 +0200 Subject: [PATCH] BUGFIX. Store soMax also for the solvent model --- opm/autodiff/BlackoilSolventModel_impl.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opm/autodiff/BlackoilSolventModel_impl.hpp b/opm/autodiff/BlackoilSolventModel_impl.hpp index 984a9f557..9faddde01 100644 --- a/opm/autodiff/BlackoilSolventModel_impl.hpp +++ b/opm/autodiff/BlackoilSolventModel_impl.hpp @@ -553,6 +553,8 @@ namespace Opm { rv = rv.max(zero); } + sd_.soMax = fluid_.satOilMax(); + // Sg is used as primal variable for water only cells. const double epsilon = std::sqrt(std::numeric_limits::epsilon()); auto watOnly = sw > (1 - epsilon);