mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 15:10:22 -05:00
Opm Flow Job DATES updates (#12952)
* Split dates keywords with multiple records into single record keywords Add support for setting environment when running opm flow * Date handling improvements * Clean up date and position handling a bit * Add support for setting a stop date for the simulation * Use Opm::ParserKeywords keywordName for all keywords * Re-enable msw support (mark as experimental) * Bump version to dev-03
This commit is contained in:
9 files changed
+508
-217
No files matched your search
@@ -43,7 +43,11 @@ QStringList RiaWslTools::wslDistributionList()
|
||||
if ( !wslCmd.isEmpty() )
|
||||
{
|
||||
RimProcess wslProc( false /*no logging*/ );
|
||||
wslProc.addEnvironmentVariable( "WSL_UTF8", "1" );
|
||||
|
||||
for ( auto& [key, val] : wslEnvironmentVariables() )
|
||||
{
|
||||
wslProc.addEnvironmentVariable( key, val );
|
||||
}
|
||||
wslProc.setCommand( wslCmd );
|
||||
wslProc.addParameter( "--list" ); // list distribution names
|
||||
wslProc.addParameter( "--quiet" ); // quiet, only show name
|
||||
@@ -73,3 +77,13 @@ QString RiaWslTools::convertToWslPath( QString windowsPath )
|
||||
|
||||
return QString( "/mnt/%1%2" ).arg( drive ).arg( path );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
/// Returns the input windows path as seen in the wsl world. I.e. c:\tmp -> /mnt/c/tmp
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::map<QString, QString> RiaWslTools::wslEnvironmentVariables()
|
||||
{
|
||||
std::map<QString, QString> env;
|
||||
env["WSL_UTF8"] = "1";
|
||||
return env;
|
||||
}
|
||||
@@ -21,14 +21,17 @@
|
||||
#include <QString>
|
||||
#include <QStringList>
|
||||
|
||||
#include <map>
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
namespace RiaWslTools
|
||||
{
|
||||
|
||||
QString wslCommand();
|
||||
QStringList wslDistributionList();
|
||||
QString convertToWslPath( QString windowsPath );
|
||||
QString wslCommand();
|
||||
QStringList wslDistributionList();
|
||||
QString convertToWslPath( QString windowsPath );
|
||||
std::map<QString, QString> wslEnvironmentVariables();
|
||||
|
||||
} // namespace RiaWslTools
|
||||
Reference in new issue
Block a user