mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-30 09:00:20 -05:00
Refactor: Use export date instead of time step for MSW export.
This commit is contained in:
1 parent
a4dad97024
commit
561006c60c
8 files changed
+47
-39
No files matched your search
@@ -20,6 +20,7 @@
|
||||
|
||||
#include "RiaLogging.h"
|
||||
|
||||
#include "CompletionExportCommands/RicWellPathExportCompletionDataFeatureImpl.h"
|
||||
#include "CompletionExportCommands/RicWellPathExportMswTableData.h"
|
||||
|
||||
#include "CompletionsMsw/RigMswTableData.h"
|
||||
@@ -167,8 +168,12 @@ void RimMswSegmentCollection::updateSegments( RimEclipseCase* eclipseCase )
|
||||
return;
|
||||
}
|
||||
|
||||
constexpr int timeStep = 0;
|
||||
auto tableDataResult = RicWellPathExportMswTableData::extractSingleWellMswData( eclipseCase, wellPath, timeStep );
|
||||
auto exportDate = RicWellPathExportCompletionDataFeatureImpl::exportDateForTimeStep( eclipseCase, 0 );
|
||||
auto tableDataResult = RicWellPathExportMswTableData::extractSingleWellMswData( eclipseCase,
|
||||
wellPath,
|
||||
true,
|
||||
RicWellPathExportMswTableData::CompletionType::ALL,
|
||||
exportDate );
|
||||
|
||||
if ( !tableDataResult.has_value() )
|
||||
{
|
||||
|
||||
@@ -1093,7 +1093,12 @@ int RimOpmFlowJob::mergeMswData( int mergePosition )
|
||||
{
|
||||
const int failure = -1;
|
||||
|
||||
auto mswDataResult = RicWellPathExportMswTableData::extractSingleWellMswData( m_eclipseCase(), m_wellPath(), 0 );
|
||||
auto exportDate = RicWellPathExportCompletionDataFeatureImpl::exportDateForTimeStep( m_eclipseCase(), 0 );
|
||||
auto mswDataResult = RicWellPathExportMswTableData::extractSingleWellMswData( m_eclipseCase(),
|
||||
m_wellPath(),
|
||||
true,
|
||||
RicWellPathExportMswTableData::CompletionType::ALL,
|
||||
exportDate );
|
||||
if ( !mswDataResult.has_value() )
|
||||
{
|
||||
RiaLogging::error( QString::fromStdString( mswDataResult.error() ) );
|
||||
|
||||
Reference in new issue
Block a user