From b3d1c0eabc2cd74357ad0a0ab484e1c28b7be71b Mon Sep 17 00:00:00 2001 From: Kai Bao Date: Wed, 11 May 2016 09:19:25 +0200 Subject: [PATCH] initializing the pointers to be nullptr in the Wells classes --- opm/autodiff/MultisegmentWells.cpp | 4 ++++ opm/autodiff/StandardWells_impl.hpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/opm/autodiff/MultisegmentWells.cpp b/opm/autodiff/MultisegmentWells.cpp index 70b40da23..4b41781ab 100644 --- a/opm/autodiff/MultisegmentWells.cpp +++ b/opm/autodiff/MultisegmentWells.cpp @@ -147,6 +147,10 @@ namespace Opm { , wops_ms_(wells_multisegment_) , num_phases_(wells_arg ? wells_arg->number_of_phases : 0) , wells_(wells_arg) + , fluid_(nullptr) + , active_(nullptr) + , phase_condition_(nullptr) + , vfp_properties_(nullptr) , well_segment_perforation_pressure_diffs_(ADB::null()) , well_segment_densities_(ADB::null()) , well_segment_pressures_delta_(ADB::null()) diff --git a/opm/autodiff/StandardWells_impl.hpp b/opm/autodiff/StandardWells_impl.hpp index 5aedc9a80..a8f98874c 100644 --- a/opm/autodiff/StandardWells_impl.hpp +++ b/opm/autodiff/StandardWells_impl.hpp @@ -75,6 +75,10 @@ namespace Opm : wells_(wells_arg) , wops_(wells_arg) , num_phases_(wells_arg->number_of_phases) + , fluid_(nullptr) + , active_(nullptr) + , phase_condition_(nullptr) + , vfp_properties_(nullptr) , well_perforation_densities_(Vector()) , well_perforation_pressure_diffs_(Vector()) {