From a5e684ffee69815c6846f55c85b0229115680d2a Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Fri, 6 Oct 2017 10:00:40 +0200 Subject: [PATCH] #1974 Dyn NNC : Read dyn NNC if flux data is available --- ApplicationCode/FileInterface/RifReaderEclipseOutput.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ApplicationCode/FileInterface/RifReaderEclipseOutput.cpp b/ApplicationCode/FileInterface/RifReaderEclipseOutput.cpp index db75f2ed1f..1e464d52bc 100644 --- a/ApplicationCode/FileInterface/RifReaderEclipseOutput.cpp +++ b/ApplicationCode/FileInterface/RifReaderEclipseOutput.cpp @@ -411,7 +411,11 @@ bool RifReaderEclipseOutput::open(const QString& fileName, RigEclipseCaseData* e transferStaticNNCData(mainEclGrid, m_ecl_init_file, eclipseCase->mainGrid()); progInfo.incrementProgress(); - transferDynamicNNCData(mainEclGrid, eclipseCase->mainGrid()); + // This test should probably be improved to test more directly for presence of NNC data + if (m_eclipseCase->results(RiaDefines::MATRIX_MODEL)->hasFlowDiagUsableFluxes()) + { + transferDynamicNNCData(mainEclGrid, eclipseCase->mainGrid()); + } progInfo.incrementProgress(); progInfo.setProgressDescription("Processing NNC data");