mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Roff: allow roff files in input property import
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
#include "CompletionExportCommands/RicWellPathExportCompletionDataFeatureImpl.h"
|
||||
|
||||
#include "RicfCommandObject.h"
|
||||
#include "RifEclipseInputPropertyLoader.h"
|
||||
#include "RifInputPropertyLoader.h"
|
||||
#include "RifReaderSettings.h"
|
||||
|
||||
#include "RigActiveCellInfo.h"
|
||||
@@ -739,10 +739,10 @@ void RimEclipseCase::loadAndSyncronizeInputProperties( bool importGridOrFaultDat
|
||||
filenames.push_back( fileName );
|
||||
}
|
||||
|
||||
RifEclipseInputPropertyLoader::loadAndSyncronizeInputProperties( inputPropertyCollection(),
|
||||
eclipseCaseData(),
|
||||
filenames,
|
||||
importGridOrFaultData );
|
||||
RifInputPropertyLoader::loadAndSyncronizeInputProperties( inputPropertyCollection(),
|
||||
eclipseCaseData(),
|
||||
filenames,
|
||||
importGridOrFaultData );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#include "RiaPreferences.h"
|
||||
|
||||
#include "RifEclipseInputFileTools.h"
|
||||
#include "RifEclipseInputPropertyLoader.h"
|
||||
#include "RifInputPropertyLoader.h"
|
||||
#include "RifReaderEclipseInput.h"
|
||||
#include "RifReaderInterface.h"
|
||||
#include "RifReaderMockModel.h"
|
||||
@@ -174,10 +174,10 @@ bool RimEclipseInputCase::openDataFileSet( const QStringList& fileNames )
|
||||
}
|
||||
}
|
||||
|
||||
RifEclipseInputPropertyLoader::loadAndSyncronizeInputProperties( m_inputPropertyCollection,
|
||||
this->eclipseCaseData(),
|
||||
filesToRead,
|
||||
importFaults );
|
||||
RifInputPropertyLoader::loadAndSyncronizeInputProperties( m_inputPropertyCollection,
|
||||
this->eclipseCaseData(),
|
||||
filesToRead,
|
||||
importFaults );
|
||||
|
||||
if ( importFaults )
|
||||
{
|
||||
|
||||
@@ -28,8 +28,8 @@
|
||||
|
||||
#include "RicfCommandObject.h"
|
||||
|
||||
#include "RifEclipseInputPropertyLoader.h"
|
||||
#include "RifEclipseOutputFileTools.h"
|
||||
#include "RifInputPropertyLoader.h"
|
||||
#include "RifReaderEclipseOutput.h"
|
||||
#include "RifReaderEclipseRft.h"
|
||||
#include "RifReaderMockModel.h"
|
||||
@@ -236,11 +236,10 @@ bool RimEclipseResultCase::importGridAndResultMetaData( bool showTimeStepFilter
|
||||
bool RimEclipseResultCase::importAsciiInputProperties( const QStringList& fileNames )
|
||||
{
|
||||
bool importFaults = false;
|
||||
RifEclipseInputPropertyLoader::loadAndSyncronizeInputProperties( m_inputPropertyCollection,
|
||||
this->eclipseCaseData(),
|
||||
std::vector<QString>( fileNames.begin(),
|
||||
fileNames.end() ),
|
||||
importFaults );
|
||||
RifInputPropertyLoader::loadAndSyncronizeInputProperties( m_inputPropertyCollection,
|
||||
this->eclipseCaseData(),
|
||||
std::vector<QString>( fileNames.begin(), fileNames.end() ),
|
||||
importFaults );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include "RiaLogging.h"
|
||||
#include "RiaPreferences.h"
|
||||
|
||||
#include "RifInputPropertyLoader.h"
|
||||
#include "RifRoffFileTools.h"
|
||||
|
||||
#include "RigActiveCellInfo.h"
|
||||
@@ -100,8 +101,12 @@ bool RimRoffCase::openEclipseGridFile()
|
||||
|
||||
results( RiaDefines::PorosityModelType::MATRIX_MODEL )->computeCellVolumes();
|
||||
|
||||
// Read properties from grid file
|
||||
RifRoffFileTools::createInputProperties( fileName, eclipseCaseData() );
|
||||
|
||||
// Read properties from input property collection
|
||||
loadAndSyncronizeInputProperties( false );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -140,3 +145,17 @@ QString RimRoffCase::locationOnDisc() const
|
||||
QFileInfo fi( gridFileName() );
|
||||
return fi.absolutePath();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimRoffCase::importAsciiInputProperties( const QStringList& fileNames )
|
||||
{
|
||||
bool importFaults = false;
|
||||
RifInputPropertyLoader::loadAndSyncronizeInputProperties( m_inputPropertyCollection,
|
||||
this->eclipseCaseData(),
|
||||
std::vector<QString>( fileNames.begin(), fileNames.end() ),
|
||||
importFaults );
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -37,11 +37,10 @@ public:
|
||||
RimRoffCase();
|
||||
~RimRoffCase() override;
|
||||
|
||||
// RimCase overrides
|
||||
bool openEclipseGridFile() override;
|
||||
void reloadEclipseGridFile() override;
|
||||
bool importAsciiInputProperties( const QStringList& fileNames ) override;
|
||||
|
||||
// Overrides from RimCase
|
||||
QString locationOnDisc() const override;
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user