From 98d5450ca14159edae30ff64a770def6127837a0 Mon Sep 17 00:00:00 2001 From: Cintia Goncalves Machado Date: Mon, 13 Jun 2022 15:34:19 +0200 Subject: [PATCH] Fix FOE definition --- ebos/eclgenericoutputblackoilmodule.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ebos/eclgenericoutputblackoilmodule.cc b/ebos/eclgenericoutputblackoilmodule.cc index d95a2c237..e6582c48b 100644 --- a/ebos/eclgenericoutputblackoilmodule.cc +++ b/ebos/eclgenericoutputblackoilmodule.cc @@ -1731,7 +1731,7 @@ updateSummaryRegionValues(const Inplace& inplace, } if (this->summaryConfig_.hasKeyword("FOE") && this->initialInplace_) { - miscSummaryData["FOE"] = inplace.get(Inplace::Phase::OIL) + miscSummaryData["FOE"] = (this->initialInplace_.value().get(Inplace::Phase::OIL) - inplace.get(Inplace::Phase::OIL)) / this->initialInplace_.value().get(Inplace::Phase::OIL); }