From ab839896b6f745b0354d04dafc410389e9ee2420 Mon Sep 17 00:00:00 2001 From: Kai Bao Date: Thu, 13 Jun 2019 15:05:12 +0200 Subject: [PATCH] using createConstantZero instead of createBlank the content for createBlank is not initialized, which causes undefined behavoir. --- opm/simulators/wells/VFPHelpers.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/simulators/wells/VFPHelpers.hpp b/opm/simulators/wells/VFPHelpers.hpp index 8a18c993a..5d63b575a 100644 --- a/opm/simulators/wells/VFPHelpers.hpp +++ b/opm/simulators/wells/VFPHelpers.hpp @@ -64,7 +64,7 @@ inline EvalWell zeroIfNanInf(const EvalWell& value) { using Toolbox = MathToolbox; - return nan_or_inf ? Toolbox::createBlank(value) : value; + return nan_or_inf ? Toolbox::createConstantZero(value) : value; }