From 6d2fe4334af69ab4f9517e25eeabb22e96501e5f Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Thu, 23 Jan 2025 10:54:00 +0100 Subject: [PATCH] remove unnecessary arithmetic --- examples/problems/co2injectionproblem.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/problems/co2injectionproblem.hh b/examples/problems/co2injectionproblem.hh index d2cc86c778..5dd893340f 100644 --- a/examples/problems/co2injectionproblem.hh +++ b/examples/problems/co2injectionproblem.hh @@ -571,7 +571,7 @@ private: const auto& matParams = this->materialLawParams(context, spaceIdx, timeIdx); MaterialLaw::capillaryPressures(pC, matParams, fs); - fs.setPressure(liquidPhaseIdx, pl + (pC[liquidPhaseIdx] - pC[liquidPhaseIdx])); + fs.setPressure(liquidPhaseIdx, pl); fs.setPressure(gasPhaseIdx, pl + (pC[gasPhaseIdx] - pC[liquidPhaseIdx])); //////