From a0598eae4ae7d6ea3126bd7064519ae9e086caba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Mon, 27 Feb 2012 17:29:09 +0100 Subject: [PATCH] Expose internal half-transmissibility through read-only reference. Useful to initialise the Opm::ImplicitTransport<> solver with gravity effects. --- opm/core/pressure/IncompTpfa.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/opm/core/pressure/IncompTpfa.hpp b/opm/core/pressure/IncompTpfa.hpp index c670f611b..76ba73baa 100644 --- a/opm/core/pressure/IncompTpfa.hpp +++ b/opm/core/pressure/IncompTpfa.hpp @@ -72,6 +72,9 @@ namespace Opm std::vector& pressure, std::vector& faceflux); + /// Expose read-only reference to internal half-transmissibility. + const ::std::vector& getHalfTrans() const { return htrans_; } + private: const UnstructuredGrid& grid_; const LinearSolverInterface& linsolver_;