initializing the pointers to be nullptr in the Wells classes

This commit is contained in:
Kai Bao 2016-05-11 09:19:25 +02:00
parent 4527034f29
commit b3d1c0eabc
2 changed files with 8 additions and 0 deletions

View File

@ -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())

View File

@ -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())
{