mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6978 Fault Import : Make sure faults in separate text file is imported
This commit is contained in:
@@ -670,7 +670,7 @@ std::vector<QString> RimEclipseCase::additionalFiles() const
|
||||
/// Loads input property data from the gridFile and additional files
|
||||
/// Creates new InputProperties if necessary, and flags the unused ones as obsolete
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimEclipseCase::loadAndSyncronizeInputProperties( bool includeGridFileName )
|
||||
void RimEclipseCase::loadAndSyncronizeInputProperties( bool importGridOrFaultData )
|
||||
{
|
||||
// Make sure we actually have reservoir data
|
||||
|
||||
@@ -685,9 +685,12 @@ void RimEclipseCase::loadAndSyncronizeInputProperties( bool includeGridFileName
|
||||
filenames.push_back( fileName );
|
||||
}
|
||||
|
||||
if ( includeGridFileName ) filenames.push_back( gridFileName() );
|
||||
if ( importGridOrFaultData ) filenames.push_back( gridFileName() );
|
||||
|
||||
RifEclipseInputPropertyLoader::loadAndSyncronizeInputProperties( inputPropertyCollection(), eclipseCaseData(), filenames );
|
||||
RifEclipseInputPropertyLoader::loadAndSyncronizeInputProperties( inputPropertyCollection(),
|
||||
eclipseCaseData(),
|
||||
filenames,
|
||||
importGridOrFaultData );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -113,7 +113,7 @@ public:
|
||||
|
||||
std::set<QString> sortedSimWellNames() const;
|
||||
|
||||
void loadAndSyncronizeInputProperties( bool includeGridFileName );
|
||||
void loadAndSyncronizeInputProperties( bool importGridOrFaultData );
|
||||
|
||||
void ensureFaultDataIsComputed();
|
||||
bool ensureNncDataIsComputed();
|
||||
|
||||
@@ -177,6 +177,12 @@ bool RimEclipseInputCase::openDataFileSet( const QStringList& fileNames )
|
||||
this->eclipseCaseData(),
|
||||
importFaults,
|
||||
filesToRead );
|
||||
|
||||
if ( importFaults )
|
||||
{
|
||||
this->ensureFaultDataIsComputed();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -215,8 +221,8 @@ bool RimEclipseInputCase::openEclipseGridFile()
|
||||
|
||||
this->eclipseCaseData()->mainGrid()->setFlipAxis( m_flipXAxis, m_flipYAxis );
|
||||
|
||||
computeCachedData();
|
||||
loadAndSyncronizeInputProperties( true );
|
||||
computeCachedData();
|
||||
}
|
||||
|
||||
RiaApplication* app = RiaApplication::instance();
|
||||
|
||||
Reference in New Issue
Block a user