From d61e6b8a56d95ee430fc61d2de514667f2c4a4b0 Mon Sep 17 00:00:00 2001 From: Kai Bao Date: Thu, 24 Sep 2015 10:55:51 +0200 Subject: [PATCH] correcting a bug in the initialization of the WellStateMultiSegment a_ = a_ to initialize some member variables cause later segmentation fault. --- opm/autodiff/WellStateMultiSegment.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/autodiff/WellStateMultiSegment.hpp b/opm/autodiff/WellStateMultiSegment.hpp index aa67687c7..9b8e7dbb9 100644 --- a/opm/autodiff/WellStateMultiSegment.hpp +++ b/opm/autodiff/WellStateMultiSegment.hpp @@ -93,7 +93,7 @@ namespace Opm // TODO: making it better later np_ = np; nseg_ = nseg; - nperf_ = nperf_; + nperf_ = nperf; nwells_ = nw; wellrates_.resize(nw * np, 0.0);