From 9263fa1f0851729fe45570a6507e98201e53bd1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Thu, 8 Mar 2012 15:25:36 +0100 Subject: [PATCH] Issue warning instead of throwing if input requests compressible effects. --- opm/core/fluid/PvtPropertiesIncompFromDeck.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opm/core/fluid/PvtPropertiesIncompFromDeck.cpp b/opm/core/fluid/PvtPropertiesIncompFromDeck.cpp index 2877008c9..dc5e80436 100644 --- a/opm/core/fluid/PvtPropertiesIncompFromDeck.cpp +++ b/opm/core/fluid/PvtPropertiesIncompFromDeck.cpp @@ -61,7 +61,7 @@ namespace Opm if (deck.hasField("PVTW")) { const std::vector& pvtw = deck.getPVTW().pvtw_[region_number]; if (pvtw[2] != 0.0 || pvtw[4] != 0.0) { - THROW("PvtPropertiesIncompFromDeck::init() -- must have no compressibility effects in PVTW."); + MESSAGE("Compressibility effects in PVTW are ignored."); } viscosity_[phase_usage.phase_pos[PhaseUsage::Aqua]] = pvtw[3]; } else { @@ -74,7 +74,7 @@ namespace Opm if (deck.hasField("PVCDO")) { const std::vector& pvcdo = deck.getPVCDO().pvcdo_[region_number]; if (pvcdo[2] != 0.0 || pvcdo[4] != 0.0) { - THROW("PvtPropertiesIncompFromDeck::init() -- must have no compressibility effects in PVCDO."); + MESSAGE("Compressibility effects in PVCDO are ignored."); } viscosity_[phase_usage.phase_pos[PhaseUsage::Liquid]] = pvcdo[3]; } else {