From 8dce4982fca11aa9a6f799bf741247349e5df4f1 Mon Sep 17 00:00:00 2001 From: Andreas Lauser Date: Tue, 3 Feb 2015 15:33:31 +0100 Subject: [PATCH] PvtConstCompr: initialize the temperature vs viscosity table pointers in all constructors this fixes opm-autodiff's "boprops_ad" unit test. thanks to [at]atgeirr for pointing this out. --- opm/core/props/pvt/PvtConstCompr.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opm/core/props/pvt/PvtConstCompr.hpp b/opm/core/props/pvt/PvtConstCompr.hpp index 542e2093..1e76f97c 100644 --- a/opm/core/props/pvt/PvtConstCompr.hpp +++ b/opm/core/props/pvt/PvtConstCompr.hpp @@ -47,6 +47,8 @@ namespace Opm { public: PvtConstCompr() + : oilvisctTables_(0), + watvisctTables_(0) {} void initFromWater(Opm::DeckKeywordConstPtr pvtwKeyword)