mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-24 22:27:55 -05:00
#11134 Export completions: Call ensureReservoirCaseIsOpen before export
This change will enable export without any open views.
This commit is contained in:
1 parent
91fdd7efe1
commit
d0b5c8d9cb
1 file changed
+12
-2
+12
-2
@@ -91,9 +91,19 @@ void RicWellPathExportCompletionDataFeatureImpl::exportCompletions( const std::v
|
||||
const std::vector<RimSimWellInView*>& simWells,
|
||||
const RicExportCompletionDataSettingsUi& exportSettings )
|
||||
{
|
||||
if ( exportSettings.caseToApply() == nullptr || exportSettings.caseToApply()->eclipseCaseData() == nullptr )
|
||||
if ( exportSettings.caseToApply() == nullptr )
|
||||
{
|
||||
RiaLogging::error( "Export Completions Data: Cannot export completions data without specified eclipse case" );
|
||||
RiaLogging::error( "Export Completions Data: Cannot export completions data a valid Eclipse case" );
|
||||
return;
|
||||
}
|
||||
|
||||
// Ensure that the case is open. This will enable export without any open views.
|
||||
// https://github.com/OPM/ResInsight/issues/11134
|
||||
exportSettings.caseToApply()->ensureReservoirCaseIsOpen();
|
||||
|
||||
if ( exportSettings.caseToApply()->eclipseCaseData() == nullptr )
|
||||
{
|
||||
RiaLogging::error( "Export Completions Data: No data available for Eclipse Case" );
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user