File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ proc Kratos::InitGlobalVariables {dir} {
151151 # Allow logs -> 0 No | 1 Only local | 2 Share with dev team
152152 set Kratos::kratos_private(allow_logs) 1
153153 # git hash of the problemtype
154- set Kratos::kratos_private(problemtype_git_hash) 0
154+ set Kratos::kratos_private(problemtype_git_hash) 0
155155 # Place were the logs will be placed
156156 set Kratos::kratos_private(model_log_folder) " "
157157
@@ -282,7 +282,7 @@ proc Kratos::Event_EndProblemtype { } {
282282 }
283283 if {[array exists ::Kratos::kratos_private]} {
284284 # Close the log and moves them to the folder
285- Kratos::FlushLog
285+ Kratos::FlushLog
286286
287287 # Restore GiD variables that were modified by kratos and must be restored (maybe mesher)
288288 Kratos::RestoreVariables
@@ -307,7 +307,7 @@ proc Kratos::Event_EndProblemtype { } {
307307
308308 }
309309 Drawer::UnregisterAll
310-
310+
311311 # Clear namespaces
312312 Kratos::DestroyNamespaces
313313}
@@ -471,6 +471,8 @@ proc Kratos::Event_BeforeRunCalculation { batfilename basename dir problemtypedi
471471 if {!$run } {
472472 return [list " -cancel-" [= " You have selected MPI parallelism system.\n Input files have been written.\n Run the MPILauncher.sh script" ]]
473473 }
474+ set app_run_brake [apps::ExecuteOnCurrentApp BeforeRunCalculation]
475+ if {$app_run_brake }
474476}
475477
476478proc Kratos::Event_AfterWriteCalculationFile { filename errorflag } {
You can’t perform that action at this time.
0 commit comments