initialize variables

strictly speaking we throw whenever these are used uninitialized,
but the compiler does not realize -> initialize to quell warnings.
This commit is contained in:
Arne Morten Kvarving
2019-06-14 16:17:41 +02:00
parent 542353b118
commit 53c1e07edf

View File

@@ -68,8 +68,8 @@ namespace Opm {
const std::string& well_name = compsegsKeyword.getRecord(0).getItem("WELL").getTrimmedString(0);
double distance_start;
double distance_end;
double distance_start = 0.0;
double distance_end = -1.0;
if (record.getItem<ParserKeywords::COMPSEGS::DISTANCE_START>().hasValue(0)) {
distance_start = record.getItem<ParserKeywords::COMPSEGS::DISTANCE_START>().getSIDouble(0);
} else if (recordIndex == 1) {