From 7a04f71a3b1a374d911b569c686d18f2536f73bb Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Tue, 2 Oct 2018 10:26:00 +0200 Subject: [PATCH] Completion Export : Use critical section when adding fracture report items --- .../RicExportFractureCompletionsImpl.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ApplicationCode/Commands/CompletionExportCommands/RicExportFractureCompletionsImpl.cpp b/ApplicationCode/Commands/CompletionExportCommands/RicExportFractureCompletionsImpl.cpp index 9b75b39590..672a7684b4 100644 --- a/ApplicationCode/Commands/CompletionExportCommands/RicExportFractureCompletionsImpl.cpp +++ b/ApplicationCode/Commands/CompletionExportCommands/RicExportFractureCompletionsImpl.cpp @@ -451,7 +451,10 @@ std::vector RicExportFractureCompletionsImpl::generateCompdat RicExportFractureCompletionsImpl::calculateAndSetReportItemData( allCompletionsForOneFracture, eclToFractureCalc, reportItem); - fractureDataReportItems->push_back(reportItem); +#pragma omp critical(critical_section_fractureDataReportItems) + { + fractureDataReportItems->push_back(reportItem); + } } std::copy(allCompletionsForOneFracture.begin(),