diff --git a/kratos.gid/apps/Buoyancy/xml/Procs.spd b/kratos.gid/apps/Buoyancy/xml/Procs.spd index 19609d17d..62dee8400 100644 --- a/kratos.gid/apps/Buoyancy/xml/Procs.spd +++ b/kratos.gid/apps/Buoyancy/xml/Procs.spd @@ -61,7 +61,7 @@ lappend arguments "SolutionType" $solutionType #W "arguments $arguments" set Sols [::Model::GetSolutionStrategies $arguments ] - set ids [list ] + set ids [list ] foreach ss $Sols { lappend ids [$ss getName] append names [$ss getName] "," diff --git a/kratos.gid/exec/compiled.unix.bat b/kratos.gid/exec/compiled.unix.bat index bdc4942a1..a201babf4 100755 --- a/kratos.gid/exec/compiled.unix.bat +++ b/kratos.gid/exec/compiled.unix.bat @@ -1,15 +1,18 @@ #!/bin/bash # OutputFile: "$2/$1.info" # ErrorFile: "$2/$1.err" + +cd "$case_path" + #delete previous result file -rm -f "$2/$1*.post.bin" -rm -f "$2/$1*.post.res" -rm -f "$2/$1*.post.msh" -rm -f "$2/$1.info" -rm -f "$2/$1.err" -rm -f "$2/$1.flavia.dat" -rm -fr "$2/gid_output" -rm -fr "$2/vtk_output" +rm -f "./$1*.post.bin" +rm -f "./$1*.post.res" +rm -f "./$1*.post.msh" +rm -f "./$1.info" +rm -f "./$1.err" +rm -f "./$1.flavia.dat" +rm -fr "./gid_output" +rm -fr "./vtk_output" # include .bashrc if it exists if [ -f "$HOME/.bashrc" ]; then @@ -36,6 +39,5 @@ export PYTHONHOME=$python_home KERNEL_NAME="linux" - # Run Python using the script MainKratos.py -$python_path MainKratos.py > "$2/$1.info" 2> "$2/$1.err" \ No newline at end of file +$python_path MainKratos.py > "./$1.info" 2> "./$1.err" \ No newline at end of file diff --git a/kratos.gid/exec/compiled.win.bat b/kratos.gid/exec/compiled.win.bat index c903a19c7..934aa23a2 100755 --- a/kratos.gid/exec/compiled.win.bat +++ b/kratos.gid/exec/compiled.win.bat @@ -7,16 +7,18 @@ REM Problem directory = %3 REM OutputFile: "%2\%1.info" REM ErrorFile: "%2\%1.err" -DEL "%2\%1.info" -DEL "%2\%1.err" -DEL "%2\%1*.post.bin" -DEL "%2\%1*.post.res" -DEL "%2\%1*.post.msh" -DEL "%2\%1.info" -DEL "%2\%1.err" -DEL "%2\%1.flavia.dat" -DEL "%2\gid_output" -DEL "%2\vtk_output" +cd %case_path% + +DEL "%case_path%\%1.info" +DEL "%case_path%\%1.err" +DEL "%case_path%\%1*.post.bin" +DEL "%case_path%\%1*.post.res" +DEL "%case_path%\%1*.post.msh" +DEL "%case_path%\%1.info" +DEL "%case_path%\%1.err" +DEL "%case_path%\%1.flavia.dat" +DEL "%case_path%\gid_output" +DEL "%case_path%\vtk_output" @REM echo "Launching on Compiled for windows -> %kratos_bin_path%" > .run @@ -24,5 +26,6 @@ set PATH=%kratos_bin_path%\libs;%PATH% set PYTHONPATH=%kratos_bin_path% set PYTHONHOME=%python_home% + REM Run Python using the script MainKratos.py %python_path% MainKratos.py > "%2\\%1.info" 2> "%2\\%1.err" \ No newline at end of file diff --git a/kratos.gid/exec/docker.unix.bat b/kratos.gid/exec/docker.unix.bat index edd71de45..3e81d5cbf 100755 --- a/kratos.gid/exec/docker.unix.bat +++ b/kratos.gid/exec/docker.unix.bat @@ -2,6 +2,7 @@ # OutputFile: "$2/$1.info" # ErrorFile: "$2/$1.err" #delete previous result file +cd "$case_path" rm -f "$2/$1*.post.bin" rm -f "$2/$1*.post.res" rm -f "$2/$1*.post.msh" diff --git a/kratos.gid/exec/docker.win.bat b/kratos.gid/exec/docker.win.bat index 259341983..68b26a9e4 100755 --- a/kratos.gid/exec/docker.win.bat +++ b/kratos.gid/exec/docker.win.bat @@ -7,12 +7,14 @@ REM Problem directory = %3 REM OutputFile: "%2\%1.info" REM ErrorFile: "%2\%1.err" -REM Remove previous calculation files and results -DEL "%2\%1.info" -DEL "%2\%1.err" -DEL "%2\%1*.post.bin" -DEL "%2\%1*.post.res" -DEL "%2\%1*.post.msh" +@REM if case_path environment variable is defined use it, change directory to it +cd %case_path% +REM Remove previous calculation files and results +DEL "%case_path%\%1.info" +DEL "%case_path%\%1.err" +DEL "%case_path%\%1*.post.bin" +DEL "%case_path%\%1*.post.res" +DEL "%case_path%\%1*.post.msh" @REM Calculate! -docker run -v "%2:/model" --rm --name "%1" %kratos_docker_image% > "%2\\%1.info" 2> "%2\\%1.err" \ No newline at end of file +docker run -v "%case_path%:/model" --rm --name "%1" %kratos_docker_image% > "%case_path%\%1.info" 2> "%case_path%\%1.err" \ No newline at end of file diff --git a/kratos.gid/exec/pip.unix.bat b/kratos.gid/exec/pip.unix.bat index ac5213f78..eadc2ae96 100755 --- a/kratos.gid/exec/pip.unix.bat +++ b/kratos.gid/exec/pip.unix.bat @@ -1,16 +1,17 @@ #!/bin/bash # OutputFile: "$2/$1.info" # ErrorFile: "$2/$1.err" +cd "$case_path" #delete previous result file -rm -f "$2/$1*.post.bin" -rm -f "$2/$1*.post.res" -rm -f "$2/$1*.post.msh" -rm -f "$2/$1.info" -rm -f "$2/$1.err" -rm -f "$2/$1.flavia.dat" +rm -f "./$1*.post.bin" +rm -f "./$1*.post.res" +rm -f "./$1*.post.msh" +rm -f "./$1.info" +rm -f "./$1.err" +rm -f "./$1.flavia.dat" export PYTHONPATH=%python_home% export PYTHONHOME=%python_home% # Run Python using the script MainKratos.py -$python_home/python3 MainKratos.py > "$2/$1.info" 2> "$2/$1.err" \ No newline at end of file +$python_home/python3 MainKratos.py > "./$1.info" 2> "./$1.err" \ No newline at end of file diff --git a/kratos.gid/exec/pip.win.bat b/kratos.gid/exec/pip.win.bat index c24d5b06f..131ea0e9f 100755 --- a/kratos.gid/exec/pip.win.bat +++ b/kratos.gid/exec/pip.win.bat @@ -7,15 +7,18 @@ REM Problem directory = %3 REM OutputFile: "%2\%1.info" REM ErrorFile: "%2\%1.err" +@REM if case_path environment variable is defined use it, change directory to it +cd %case_path% + REM Remove previous calculation files and results -DEL "%2\%1.info" -DEL "%2\%1.err" -DEL "%2\%1*.post.bin" -DEL "%2\%1*.post.res" -DEL "%2\%1*.post.msh" +DEL "%case_path%\%1.info" +DEL "%case_path%\%1.err" +DEL "%case_path%\%1*.post.bin" +DEL "%case_path%\%1*.post.res" +DEL "%case_path%\%1*.post.msh" set PYTHONPATH=%python_home% set PYTHONHOME=%python_home% @REM Calculate! -%python_home%/python.exe MainKratos.py > "%2\\%1.info" 2> "%2\\%1.err" +%python_home%/python.exe MainKratos.py > "%case_path%\%1.info" 2> "%case_path%\%1.err" diff --git a/kratos.gid/exec/pip_gids_python.unix.bat b/kratos.gid/exec/pip_gids_python.unix.bat index b7a0bd6ca..64b9aff77 100644 --- a/kratos.gid/exec/pip_gids_python.unix.bat +++ b/kratos.gid/exec/pip_gids_python.unix.bat @@ -2,15 +2,17 @@ # OutputFile: "$2/$1.info" # ErrorFile: "$2/$1.err" #delete previous result file -rm -f "$2/$1*.post.bin" -rm -f "$2/$1*.post.res" -rm -f "$2/$1*.post.msh" -rm -f "$2/$1.info" -rm -f "$2/$1.err" -rm -f "$2/$1.flavia.dat" +cd "$case_path" +rm -f "./$1*.post.bin" +rm -f "./$1*.post.res" +rm -f "./$1*.post.msh" +rm -f "./$1.info" +rm -f "./$1.err" +rm -f "./$1.flavia.dat" export PYTHONPATH="" export PYTHONHOME="" + # Run Python using the script MainKratos.py -$python_path MainKratos.py > "$2/$1.info" 2> "$2/$1.err" \ No newline at end of file +$python_path MainKratos.py > "./$1.info" 2> "./$1.err" \ No newline at end of file diff --git a/kratos.gid/exec/pip_gids_python.win.bat b/kratos.gid/exec/pip_gids_python.win.bat index c675a3302..25aa0588a 100644 --- a/kratos.gid/exec/pip_gids_python.win.bat +++ b/kratos.gid/exec/pip_gids_python.win.bat @@ -6,15 +6,19 @@ REM Problem directory = %3 REM OutputFile: "%2\%1.info" REM ErrorFile: "%2\%1.err" +@REM if case_path environment variable is defined use it, change directory to it +cd %case_path% REM Remove previous calculation files and results -DEL "%2\%1.info" -DEL "%2\%1.err" -DEL "%2\%1*.post.bin" -DEL "%2\%1*.post.res" -DEL "%2\%1*.post.msh" +DEL "%case_path%\%1.info" +DEL "%case_path%\%1.err" +DEL "%case_path%\%1*.post.bin" +DEL "%case_path%\%1*.post.res" +DEL "%case_path%\%1*.post.msh" @REM Calculate! set PYTHONPATH="" set PYTHONHOME="" -%python_path% MainKratos.py > "%2\\%1.info" 2> "%2\\%1.err" + + +%python_path% MainKratos.py > "%case_path%\%1.info" 2> "%case_path%\%1.err" diff --git a/kratos.gid/images/error16.png b/kratos.gid/images/error16.png new file mode 100644 index 000000000..9f09ecf2e Binary files /dev/null and b/kratos.gid/images/error16.png differ diff --git a/kratos.gid/images/ok16.png b/kratos.gid/images/ok16.png new file mode 100644 index 000000000..7b4f3494c Binary files /dev/null and b/kratos.gid/images/ok16.png differ diff --git a/kratos.gid/images/run16.png b/kratos.gid/images/run16.png new file mode 100644 index 000000000..ce8b3360d Binary files /dev/null and b/kratos.gid/images/run16.png differ diff --git a/kratos.gid/images/running.png b/kratos.gid/images/running.png new file mode 100644 index 000000000..7b4f3494c Binary files /dev/null and b/kratos.gid/images/running.png differ diff --git a/kratos.gid/kratos.spd b/kratos.gid/kratos.spd index f88968996..e4c2ad1c1 100644 --- a/kratos.gid/kratos.spd +++ b/kratos.gid/kratos.spd @@ -36,6 +36,8 @@ + + @@ -330,9 +332,6 @@ return [spdAux::ProcGetFilesValues $domNode] ]]> - - - + + + + diff --git a/kratos.gid/kratos.tcl b/kratos.gid/kratos.tcl index f6aec49e6..431aa78f5 100644 --- a/kratos.gid/kratos.tcl +++ b/kratos.gid/kratos.tcl @@ -12,10 +12,12 @@ namespace eval ::Kratos { variable namespaces variable mesh_criteria_forced + + variable pending_postprocess_simulation } proc GiD_Event_InitProblemtype { dir } { - Kratos::Event_InitProblemtype $dir + Kratos::Event_InitProblemtype $dir } proc Kratos::Events { } { @@ -52,6 +54,7 @@ proc Kratos::RegisterGiDEvents { } { GiD_RegisterEvent GiD_Event_AfterWriteCalculationFile Kratos::Event_AfterWriteCalculationFile PROBLEMTYPE Kratos GiD_RegisterEvent GiD_Event_BeforeRunCalculation Kratos::Event_BeforeRunCalculation PROBLEMTYPE Kratos GiD_RegisterEvent GiD_Event_SelectGIDBatFile Kratos::Event_SelectGIDBatFile PROBLEMTYPE Kratos + GiD_RegisterEvent GiD_Event_AfterRunCalculation Kratos::Event_AfterRunCalculation PROBLEMTYPE Kratos # Postprocess GiD_RegisterEvent GiD_Event_BeforeInitGIDPostProcess Kratos::BeforeInitGIDPostProcess PROBLEMTYPE Kratos @@ -179,6 +182,9 @@ proc Kratos::InitGlobalVariables {dir} { variable mesh_criteria_forced set mesh_criteria_forced [dict create] + + variable pending_postprocess_simulation + set pending_postprocess_simulation "" } proc Kratos::LoadCommonScripts { } { @@ -203,7 +209,7 @@ proc Kratos::LoadCommonScripts { } { uplevel #0 [list source [file join $kratos_private(Path) scripts $filename.tcl]] } # Common controllers - foreach filename {ApplicationMarketWindow ExamplesWindow CommonProcs PreferencesWindow TreeInjections MdpaImportMesh Drawer ImportFiles} { + foreach filename {ApplicationMarketWindow ExamplesWindow CommonProcs PreferencesWindow TreeInjections MdpaImportMesh Drawer ImportFiles RunSimulations RunWindow} { uplevel #0 [list source [file join $kratos_private(Path) scripts Controllers $filename.tcl]] } # Model class @@ -453,7 +459,7 @@ proc Kratos::Event_AfterMeshGeneration {fail} { Kratos::Log "Mesh generation failed" return } - + # Change the mesh settings depending on the element requirements. Reset previous settings # catch {Kratos::ResetMeshCriteria $fail} @@ -492,6 +498,17 @@ proc Kratos::BeforeInitGIDPostProcess {} { } } } + + # Check if there is a pending postprocess request + variable pending_postprocess_simulation + if {$pending_postprocess_simulation ne ""} { + # Open the postprocess of the requested simulation + + # TODO: Ask kike if there is a better way to change to post and return the path of a post.lst file + # Instead of writing the post.lst manually + + set pending_postprocess_simulation "" + } } proc Kratos::Event_EndGIDPostProcess {} { @@ -507,6 +524,16 @@ proc Kratos::Event_EndGIDPostProcess {} { ::Kratos::CreatePreprocessModelTBar } +proc Kratos::Event_AfterRunCalculation { basename dir problemtypedir where error errorfilename } { + # Refresh tree + spdAux::RequestRefresh + + set currrent_simulation [runsimulations::GetCurrentSimulationRunName] + set sim_path [file join [GidUtils::GetDirectoryModel] $::runsimulations::folder_name $currrent_simulation] + # W "Writing postprocess request for simulation: $sim_path" + runsimulations::WritePostprocessRequest $sim_path +} + proc Kratos::Event_BeforeRunCalculation { batfilename basename dir problemtypedir gidexe args } { # Let's launch the Kratos rocket! set run 1 @@ -524,6 +551,10 @@ proc Kratos::Event_BeforeRunCalculation { batfilename basename dir problemtypedi if {[write::isBooleanTrue $app_run_brake]} {return "-cancel-"} if {[Kratos::CheckDependencies] ne 0} {return [list "-cancel-" "Unable to run. Missing dependencies"]} + # after 3 seconds + after 3000 { + Kratos::CreateLinksRunData + } } proc Kratos::Event_SelectGIDBatFile { dir basename } { @@ -557,6 +588,15 @@ proc Kratos::WriteCalculationFilesEvent { {filename ""} } { set filename [file join [GiD_Info Project Modelname].gid [Kratos::GetModelName]] } } + + set next_run [runsimulations::GetNextSimulationRunName] + # replace next_run whitespaces by underscores. Do not use regsub + set next_run [string map {" " "_"} $next_run] + + set filename [file join [runsimulations::GetSimulationRunPath $next_run] [file tail $filename]] + # create the folder if it does not exist + file mkdir [file dirname $filename] + # The calculation process may need the files of the file selector entries inside the model folder if {$Kratos::kratos_private(UseFiles) eq 1} {FileSelector::CopyFilesIntoModel [file dirname $filename]} @@ -572,7 +612,7 @@ proc Kratos::WriteCalculationFilesEvent { {filename ""} } { } else { ::GidUtils::SetWarnLine "MDPA and JSON written OK" } - if {[::write::GetConfigurationAttribute time_monitor]} { set endtime [clock seconds]; set ttime [expr {$endtime-$inittime}]; + if {[::write::GetConfigurationAttribute time_monitor]} { set endtime [clock seconds]; set ttime [expr {$endtime-$inittime}]; W "Nodal coordinates time: [Kratos::Duration $ttime]" Kratos::Log "Write calculation files in [Duration $ttime]" } diff --git a/kratos.gid/kratos.unix.bat b/kratos.gid/kratos.unix.bat deleted file mode 100755 index 3ea4ad5d3..000000000 --- a/kratos.gid/kratos.unix.bat +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/bash -# OutputFile: "$2/$1.info" -# ErrorFile: "$2/$1.err" -#delete previous result file -rm -f "$2/$1*.post.bin" -rm -f "$2/$1*.post.res" -rm -f "$2/$1*.post.msh" -rm -f "$2/$1.info" -rm -f "$2/$1.err" -rm -f "$2/$1.flavia.dat" - -# include .bashrc if it exists -if [ -f "$HOME/.bashrc" ]; then - . "$HOME/.bashrc" -fi - - - -# gid redefines LD_LIBRARY_PATH to its own libs directory -# and maintains OLD_LD_LIBRARY_PATH with previous settings -# therefore, we use the OLD_LD_LIBRARY_PATH and prepend the path to the kratos libs -if [ "$OLD_LD_LIBRARY_PATH" != "" ]; then - export LD_LIBRARY_PATH="$3/exec/Kratos":"$3/exec/Kratos/libs":$OLD_LD_LIBRARY_PATH -else - # do not add the ':' - export LD_LIBRARY_PATH="$3/exec/Kratos":"$3/exec/Kratos/libs" -fi - -# Prevents the PYTHONHOME error from happening and isolate possible python repacks present -# in the system and interfeering with runkratos -# export PYTHONHOME="$3/exec/Kratos" -export PYTHONPATH="$3/exec/Kratos/python34.zip":"$3/exec/Kratos":$PYTHONPATH - - -# if mac -KERNEL=`uname -s` -if [ $KERNEL = "Darwin" ]; then - KERNEL_NAME="macosx" - export DYLD_LIBRARY_PATH="$3/exec/Kratos":"$3/exec/Kratos/libs":$DYLD_LIBRARY_PATH - export DYLD_FALLBACK_LIBRARY_PATH="$3/exec/Kratos":"$3/exec/Kratos/libs":$DYLD_FALLBACK_LIBRARY_PATH - export PYTHONPATH="$3/exec/Kratos/Lib":"$3/exec/Kratos/Lib/lib-dynload/":$PYTHONPATH - export PYTHONHOME="$3/exec/Kratos" -else - KERNEL_NAME="linux" -fi - -# Run Python using the script MainKratos.py -python3 MainKratos.py > "$2/$1.info" 2> "$2/$1.err" diff --git a/kratos.gid/kratos.unix.mpi.bat b/kratos.gid/kratos.unix.mpi.bat deleted file mode 100755 index c15dab760..000000000 --- a/kratos.gid/kratos.unix.mpi.bat +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/bash -# OutputFile: "$2/$1.info" -# ErrorFile: "$2/$1.err" -#delete previous result file -rm -f "$2/$1*.post.bin" -rm -f "$2/$1*.post.res" -rm -f "$2/$1*.post.msh" -rm -f "$2/$1.info" -rm -f "$2/$1.err" -rm -f "$2/$1.flavia.dat" - -# include .bashrc if it exists -if [ -f "$HOME/.bashrc" ]; then - . "$HOME/.bashrc" -fi - -# gid redefines LD_LIBRARY_PATH to its own libs directory -# and maintains OLD_LD_LIBRARY_PATH with previous settings -# therefore, we use the OLD_LD_LIBRARY_PATH and prepend the path to the kratos libs -if [ "$OLD_LD_LIBRARY_PATH" != "" ]; then - export LD_LIBRARY_PATH="$3/exec/Kratos":"$3/exec/Kratos/libs":"$3/exec/Kratos/OpenMPI/lib":$OLD_LD_LIBRARY_PATH -else - # do not add the ':' - export LD_LIBRARY_PATH="$3/exec/Kratos":"$3/exec/Kratos/libs":"$3/exec/Kratos/OpenMPI/lib" -fi - -export PWD=`pwd` -export OPAL_PREFIX="$PWD/exec/Kratos/OpenMPI" - -# Prevents the PYTHONHOME error from happening and isolate possible python repacks present -# in the system and interfeering with runkratos -export PYTHONHOME="$3/exec/Kratos" -export PYTHONPATH="$3/exec/Kratos/python34.zip":"$3/exec/Kratos":$PYTHONPATH - -# Run Python using the script MainKratos.py -"$3/exec/Kratos/OpenMPI/bin/mpirun" --oversubscribe -np 2 "$3/exec/Kratos/runkratos" MainKratos.py > "$2/$1.info" 2> "$2/$1.err" diff --git a/kratos.gid/kratos.unix_release.bat b/kratos.gid/kratos.unix_release.bat deleted file mode 100755 index b81b0283d..000000000 --- a/kratos.gid/kratos.unix_release.bat +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/bash -# OutputFile: "$2/$1.info" -# ErrorFile: "$2/$1.err" -#delete previous result file -rm -f "$2/$1*.post.bin" -rm -f "$2/$1*.post.res" -rm -f "$2/$1*.post.msh" -rm -f "$2/$1.info" -rm -f "$2/$1.err" -rm -f "$2/$1.flavia.dat" - -# include .bashrc if it exists -if [ -f "$HOME/.bashrc" ]; then - . "$HOME/.bashrc" -fi - -# gid redefines LD_LIBRARY_PATH to its own libs directory -# and maintains OLD_LD_LIBRARY_PATH with previous settings -# therefore, we use the OLD_LD_LIBRARY_PATH and prepend the path to the kratos libs -if [ "$OLD_LD_LIBRARY_PATH" != "" ]; then - export LD_LIBRARY_PATH="$3/exec/Kratos":"$3/exec/Kratos/libs":$OLD_LD_LIBRARY_PATH -else - # do not add the ':' - export LD_LIBRARY_PATH="$3/exec/Kratos":"$3/exec/Kratos/libs" -fi - -# Mpi -export PWD=`pwd` -export OPAL_PREFIX="$PWD/exec/Kratos/OpenMPI" - -# Prevents the PYTHONHOME error from happening and isolate possible python repacks present -# in the system and interfeering with runkratos -export PYTHONHOME="$3/exec/Kratos" -export PYTHONPATH="$3/exec/Kratos/python34.zip":"$3/exec/Kratos":$PYTHONPATH - -# if mac -KERNEL=`uname -s` -if [ $KERNEL = "Darwin" ]; then - KERNEL_NAME="macosx" - export DYLD_LIBRARY_PATH="$3/exec/Kratos":"$3/exec/Kratos/libs":$DYLD_LIBRARY_PATH - export DYLD_FALLBACK_LIBRARY_PATH="$3/exec/Kratos":"$3/exec/Kratos/libs":$DYLD_FALLBACK_LIBRARY_PATH - export PYTHONPATH="$3/exec/Kratos/Lib":"$3/exec/Kratos/Lib/lib-dynload/":$PYTHONPATH -else - KERNEL_NAME="linux" -fi - -# Run Python using the script MainKratos.py -"$3/exec/Kratos/runkratos" MainKratos.py > "$2/$1.info" 2> "$2/$1.err" diff --git a/kratos.gid/kratos.win.bat b/kratos.gid/kratos.win.bat deleted file mode 100644 index d21c8e32d..000000000 --- a/kratos.gid/kratos.win.bat +++ /dev/null @@ -1,21 +0,0 @@ -REM @ECHO OFF -REM Identification for arguments -REM basename = %1 -REM Project directory = %2 -REM Problem directory = %3 - -REM OutputFile: "%2\%1.info" -REM ErrorFile: "%2\%1.err" - -DEL "%2\%1.info" -DEL "%2\%1.err" - -set PATH=%3\\exec\\kratos;%3\\exec\\kratos\\libs;%PATH% -REM set PYTHONPATH=%3\\exec\\kratos -REM Set the number of threads for OpenMP -REM export OMP_NUM_THREADS=%5 -REM set OMP_NUM_THREADS=%5 - -REM Run Python using the script MainKratos.py -"%3\\exec\\kratos\\runkratos" MainKratos.py > "%2\\%1.info" 2> "%2\\%1.err" -REM python MainKratos.py > "%2\\%1.info" 2> "%2\\%1.err" diff --git a/kratos.gid/scripts/Controllers/Preferences.xml b/kratos.gid/scripts/Controllers/Preferences.xml index ee442869e..5ca77b086 100644 --- a/kratos.gid/scripts/Controllers/Preferences.xml +++ b/kratos.gid/scripts/Controllers/Preferences.xml @@ -18,6 +18,10 @@