Support for ensemble jobs (#14773)

Initial support for running well planning opm flow jobs for ensembles
This commit is contained in:
JJ authored and GitHub committed 2026-09-17 14:03:54 +02:00
1 parent 044454b9b1
commit e0c1f23e6e
31 files changed
+1882 -306

No files matched your search

@@ -418,4 +418,39 @@ std::string makeSuitableAsFileName( const std::string candidateName )
return tmp.toStdString();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
std::string replaceSubFolderInPath( const std::string& path, const std::string& subFolderToReplace, const std::string& newSubFolder )
{
auto normPath = std::filesystem::path( normalizePath( path ) );
std::filesystem::path newPath;
for ( const auto& part : normPath )
{
if ( part == subFolderToReplace )
newPath /= newSubFolder;
else
newPath /= part;
}
return newPath.generic_string();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
std::string replaceFileExtension( const std::string& filePath, const std::string& newExtension )
{
if ( filePath.empty() )
{
return filePath;
}
std::filesystem::path path( filePath );
path.replace_extension( newExtension );
return path.string();
}
} // namespace RiaFilePathTools