mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-27 07:30:20 -05:00
Run Opm Flow jobs from ResInsight (#12580)
This commit is contained in:
62 files changed
+3144
-62
No files matched your search
@@ -79,6 +79,25 @@ std::vector<RimEnsembleFileSet*> createEnsembleFileSets( const QStringList& file
|
||||
return fileSets;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimEnsembleFileSet* createEnsembleFileSetFromOpm( const QString& pathPattern, const QString& name )
|
||||
{
|
||||
auto collection = RimProject::current()->ensembleFileSetCollection();
|
||||
auto ensembleFileSet = new RimEnsembleFileSet();
|
||||
ensembleFileSet->setAutoName( false );
|
||||
ensembleFileSet->setName( name );
|
||||
ensembleFileSet->setGroupingMode( RiaDefines::EnsembleGroupingMode::RESINSIGHT_OPMFLOW_STRUCTURE );
|
||||
ensembleFileSet->setPathPattern( pathPattern );
|
||||
|
||||
collection->addFileSet( ensembleFileSet );
|
||||
collection->updateFileSetNames();
|
||||
collection->updateAllRequiredEditors();
|
||||
|
||||
return ensembleFileSet;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user