mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-16 10:22:15 -05:00
Import faults when using omp common file reader, too
This commit is contained in:
1 parent
8fe82423ae
commit
9ac4b38cae
7 files changed
+69
-47
No files matched your search
@@ -31,6 +31,8 @@
|
||||
#include "RigSimWellData.h"
|
||||
#include "RigWellResultFrame.h"
|
||||
|
||||
#include "cafProgressInfo.h"
|
||||
|
||||
#include "opm/input/eclipse/Deck/Deck.hpp"
|
||||
#include "opm/input/eclipse/EclipseState/Runspec.hpp"
|
||||
#include "opm/input/eclipse/Parser/Parser.hpp"
|
||||
@@ -65,6 +67,8 @@ RifReaderOpmCommon::~RifReaderOpmCommon()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RifReaderOpmCommon::open( const QString& fileName, RigEclipseCaseData* eclipseCase )
|
||||
{
|
||||
caf::ProgressInfo progress( 100, "Reading Grid" );
|
||||
|
||||
QStringList fileSet;
|
||||
if ( !RifEclipseOutputFileTools::findSiblingFilesWithSameBaseName( fileName, &fileSet ) ) return false;
|
||||
|
||||
@@ -79,7 +83,24 @@ bool RifReaderOpmCommon::open( const QString& fileName, RigEclipseCaseData* ecli
|
||||
return false;
|
||||
}
|
||||
|
||||
buildMetaData( eclipseCase );
|
||||
{
|
||||
auto task = progress.task( "Reading faults", 25 );
|
||||
|
||||
if ( isFaultImportEnabled() )
|
||||
{
|
||||
cvf::Collection<RigFault> faults;
|
||||
|
||||
importFaults( fileSet, &faults );
|
||||
|
||||
RigMainGrid* mainGrid = eclipseCase->mainGrid();
|
||||
mainGrid->setFaults( faults );
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
auto task = progress.task( "Reading Results Meta data", 50 );
|
||||
buildMetaData( eclipseCase );
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user