mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#7973 Export Completions : Further improvements
Fix typo Make sure compdat export works for custom file name
This commit is contained in:
parent
6173b4f421
commit
0e0bd751f6
@ -268,11 +268,22 @@ void RicWellPathExportCompletionDataFeatureImpl::exportCompletions( const std::v
|
||||
|
||||
if ( exportSettings.fileSplit == RicExportCompletionDataSettingsUi::ExportSplit::UNIFIED_FILE )
|
||||
{
|
||||
QString fileName = exportSettings.customFileName();
|
||||
if ( fileName.isEmpty() ) fileName = QString( "UnifiedCompletions_%1" ).arg( eclipseCaseName );
|
||||
QString fileName;
|
||||
QString folderName;
|
||||
if ( exportSettings.customFileName().isEmpty() )
|
||||
{
|
||||
fileName = QString( "UnifiedCompletions_%1" ).arg( eclipseCaseName );
|
||||
folderName = exportSettings.folder;
|
||||
}
|
||||
else
|
||||
{
|
||||
fileName = exportSettings.customFileName();
|
||||
QFileInfo fi( fileName );
|
||||
folderName = fi.absolutePath();
|
||||
}
|
||||
|
||||
sortAndExportCompletionsToFile( exportSettings.caseToApply,
|
||||
exportSettings.folder,
|
||||
folderName,
|
||||
fileName,
|
||||
completions,
|
||||
fractureDataReportItems,
|
||||
|
@ -77,7 +77,7 @@ void RicWellPathExportMswCompletionsImpl::exportWellSegmentsForAllCompletions(
|
||||
QFileInfo fi( exportSettings.customFileName() );
|
||||
if ( !exportSettings.customFileName().isEmpty() )
|
||||
{
|
||||
fileName = fi.baseName();
|
||||
fileName = fi.baseName() + "_MSW";
|
||||
folderName = fi.absolutePath();
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user