From 03a616e08a5fc80ce97ea1e165669d7b37d1b03e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Tue, 2 Feb 2021 09:13:49 +0100 Subject: [PATCH] Support Aliases for Block Level Quantities In particular, treat BSOIL, BSGAS, BSWAT, and BPRESSUR as aliases for BOSAT, BGSAT, BWSAT, and BPR respectively. --- ebos/ecloutputblackoilmodule.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ebos/ecloutputblackoilmodule.hh b/ebos/ecloutputblackoilmodule.hh index de04e8a99..3182a0f97 100644 --- a/ebos/ecloutputblackoilmodule.hh +++ b/ebos/ecloutputblackoilmodule.hh @@ -799,13 +799,13 @@ public: const auto& key = val.first; int cartesianIdxBlock = key.second - 1; if (cartesianIdx == cartesianIdxBlock) { - if (key.first == "BWSAT") + if ((key.first == "BWSAT") || (key.first == "BSWAT")) val.second = Opm::getValue(fs.saturation(waterPhaseIdx)); - else if (key.first == "BGSAT") + else if ((key.first == "BGSAT") || (key.first == "BSGAS")) val.second = Opm::getValue(fs.saturation(gasPhaseIdx)); - else if (key.first == "BOSAT") + else if ((key.first == "BOSAT") || (key.first == "BSOIL")) val.second = Opm::getValue(fs.saturation(oilPhaseIdx)); - else if (key.first == "BPR") + else if ((key.first == "BPR") || (key.first == "BPRESSUR")) val.second = Opm::getValue(fs.pressure(oilPhaseIdx)); else if (key.first == "BWKR" || key.first == "BKRW") val.second = Opm::getValue(intQuants.relativePermeability(waterPhaseIdx));