From fb55aedf4b1079f329d46633037717ef054bdd35 Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Mon, 9 Jan 2017 15:31:40 +0100 Subject: [PATCH] Fix unit conversion of fip totals (pav) again. This was (accidentally?) introduced in c880efae5be (labelled "mostly eliminate Eigen in the FIP and VFP code"). As it is neither present in flow_ebos nor in flow_mpi and was previously removed in ccec17f8 (labelled "Fixed missing unit conversion for total fluid in place") I assume that this is a bug. --- opm/autodiff/SimulatorBase_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/autodiff/SimulatorBase_impl.hpp b/opm/autodiff/SimulatorBase_impl.hpp index 8e47016d6..c023ed69a 100644 --- a/opm/autodiff/SimulatorBase_impl.hpp +++ b/opm/autodiff/SimulatorBase_impl.hpp @@ -737,7 +737,7 @@ namespace Opm tmp2 += geo_.poreVolume()[i] * hydrocarbon[i]; } totals[5] = geo_.poreVolume().sum(); - totals[6] = unit::convert::to(tmp/tmp2, unit::barsa); + totals[6] = tmp/tmp2; } else {