mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Ensemble Surface improvements
* Performance : Improve surface import * Performance: Use opm when importing files * Surface : Use the triangle size as basis for the maximum search distance * Performance : Resample surfaces in parallell * Performance: Import file surfaces in parallell * Ensemble Surface : Create one ensemble per surface
This commit is contained in:
@@ -120,12 +120,23 @@ QString RiaEnsembleNameTools::uniqueShortName( const QString& sourceFileName
|
||||
const QStringList& allFileNames,
|
||||
const QString& ensembleCaseName )
|
||||
{
|
||||
QRegularExpression trimRe( "^[^a-zA-Z0-9]+" );
|
||||
|
||||
std::map<QString, QStringList> keyFileComponentsForAllFiles =
|
||||
RiaFilePathTools::keyPathComponentsForEachFilePath( allFileNames );
|
||||
|
||||
QStringList keyFileComponents = keyFileComponentsForAllFiles[sourceFileName];
|
||||
return uniqueShortNameFromComponents( sourceFileName, keyFileComponentsForAllFiles, ensembleCaseName );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RiaEnsembleNameTools::uniqueShortNameFromComponents( const QString& sourceFileName,
|
||||
const std::map<QString, QStringList>& keyFileComponentsForAllFiles,
|
||||
const QString& ensembleCaseName )
|
||||
{
|
||||
QRegularExpression trimRe( "^[^a-zA-Z0-9]+" );
|
||||
|
||||
auto modifyableMap( keyFileComponentsForAllFiles );
|
||||
QStringList keyFileComponents = modifyableMap[sourceFileName];
|
||||
if ( keyFileComponents.empty() ) return "Unnamed";
|
||||
|
||||
if ( !ensembleCaseName.isEmpty() )
|
||||
|
||||
Reference in New Issue
Block a user