From 3a78cd463577501295a51afd24eaf31126a4a848 Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Thu, 3 Sep 2015 09:27:36 +0200 Subject: [PATCH] BUGFIX Fix out of bounds error --- opm/autodiff/BlackoilSolventModel_impl.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/opm/autodiff/BlackoilSolventModel_impl.hpp b/opm/autodiff/BlackoilSolventModel_impl.hpp index af1e1cdf0..68e707428 100644 --- a/opm/autodiff/BlackoilSolventModel_impl.hpp +++ b/opm/autodiff/BlackoilSolventModel_impl.hpp @@ -655,11 +655,11 @@ namespace Opm { if (std::isnan(mass_balance_residual[Water]) || mass_balance_residual[Water] > maxResidualAllowed() || std::isnan(mass_balance_residual[Oil]) || mass_balance_residual[Oil] > maxResidualAllowed() || std::isnan(mass_balance_residual[Gas]) || mass_balance_residual[Gas] > maxResidualAllowed() || - std::isnan(mass_balance_residual[Gas]) || mass_balance_residual[Solvent] > maxResidualAllowed() || + std::isnan(mass_balance_residual[Gas]) || mass_balance_residual[MaxNumPhases] > maxResidualAllowed() || std::isnan(CNV[Water]) || CNV[Water] > maxResidualAllowed() || std::isnan(CNV[Oil]) || CNV[Oil] > maxResidualAllowed() || std::isnan(CNV[Gas]) || CNV[Gas] > maxResidualAllowed() || - std::isnan(CNV[Solvent]) || CNV[Solvent] > maxResidualAllowed() || + std::isnan(CNV[MaxNumPhases]) || CNV[MaxNumPhases] > maxResidualAllowed() || std::isnan(well_flux_residual[Water]) || well_flux_residual[Water] > maxResidualAllowed() || std::isnan(well_flux_residual[Oil]) || well_flux_residual[Oil] > maxResidualAllowed() || std::isnan(well_flux_residual[Gas]) || well_flux_residual[Gas] > maxResidualAllowed() || @@ -680,11 +680,11 @@ namespace Opm { << std::setw(11) << mass_balance_residual[Water] << std::setw(11) << mass_balance_residual[Oil] << std::setw(11) << mass_balance_residual[Gas] - << std::setw(11) << mass_balance_residual[Solvent] + << std::setw(11) << mass_balance_residual[MaxNumPhases] << std::setw(11) << CNV[Water] << std::setw(11) << CNV[Oil] << std::setw(11) << CNV[Gas] - << std::setw(11) << CNV[Solvent] + << std::setw(11) << CNV[MaxNumPhases] << std::setw(11) << well_flux_residual[Water] << std::setw(11) << well_flux_residual[Oil] << std::setw(11) << well_flux_residual[Gas]