From ab8c6b3d2173c73bec07a556dcea5e203f388cfe Mon Sep 17 00:00:00 2001 From: Joakim Hove Date: Tue, 1 Dec 2020 10:58:23 +0100 Subject: [PATCH] Delay exception in WBP calculation --- .../eclipse/EclipseState/Schedule/Well/PAvgCalculator.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/opm/parser/eclipse/EclipseState/Schedule/Well/PAvgCalculator.cpp b/src/opm/parser/eclipse/EclipseState/Schedule/Well/PAvgCalculator.cpp index 08a8a39a8..df29ffdab 100644 --- a/src/opm/parser/eclipse/EclipseState/Schedule/Well/PAvgCalculator.cpp +++ b/src/opm/parser/eclipse/EclipseState/Schedule/Well/PAvgCalculator.cpp @@ -59,7 +59,8 @@ PAvgCalculator::PAvgCalculator(const std::string& well, const EclipseGrid& grid, m_pavg(pavg) { if (pavg.use_porv()) - throw std::logic_error("The current implementation does not yet support PORV based averaging"); + OpmLog::warning("PORV based averaging is not yet supported in WBPx"); + //throw std::logic_error("The current implementation does not yet support PORV based averaging"); for (const auto& conn : connections) { if (conn.state() == ::Opm::Connection::State::OPEN || !this->m_pavg.open_connections()) { @@ -195,6 +196,9 @@ double PAvgCalculator::wbp9() const { } double PAvgCalculator::wbp(PAvgCalculator::WBPMode mode) const { + if (this->m_pavg.use_porv()) + throw std::logic_error("The current implementation does not yet support PORV based averaging in WBPx"); + double conn_pressure = 0; if (this->m_pavg.conn_weight() > 0) { std::vector> block_pressure;