From b35e7d9bd4ce513b68d5d60f3aa3d472fddaeb2d Mon Sep 17 00:00:00 2001 From: Gaute Lindkvist Date: Fri, 26 Apr 2019 09:32:23 +0200 Subject: [PATCH] #4369 Only create placeholder for derived MULTXYZ result if all requirements are available --- .../ReservoirDataModel/RigCaseCellResultsData.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ApplicationCode/ReservoirDataModel/RigCaseCellResultsData.cpp b/ApplicationCode/ReservoirDataModel/RigCaseCellResultsData.cpp index 0898ce15bf..d6f363f4cd 100644 --- a/ApplicationCode/ReservoirDataModel/RigCaseCellResultsData.cpp +++ b/ApplicationCode/ReservoirDataModel/RigCaseCellResultsData.cpp @@ -881,7 +881,15 @@ void RigCaseCellResultsData::createPlaceholderResultEntries() } // MULTXYZ { - addStaticScalarResult(RiaDefines::STATIC_NATIVE, RiaDefines::combinedMultResultName(), false, 0); + if (hasResultEntry(RigEclipseResultAddress(RiaDefines::STATIC_NATIVE, "MULTX")) && + hasResultEntry(RigEclipseResultAddress(RiaDefines::STATIC_NATIVE, "MULTX-")) && + hasResultEntry(RigEclipseResultAddress(RiaDefines::STATIC_NATIVE, "MULTY")) && + hasResultEntry(RigEclipseResultAddress(RiaDefines::STATIC_NATIVE, "MULTY-")) && + hasResultEntry(RigEclipseResultAddress(RiaDefines::STATIC_NATIVE, "MULTZ")) && + hasResultEntry(RigEclipseResultAddress(RiaDefines::STATIC_NATIVE, "MULTZ-"))) + { + addStaticScalarResult(RiaDefines::STATIC_NATIVE, RiaDefines::combinedMultResultName(), false, 0); + } } // riTRANSXYZ and X,Y,Z