Skip to content

Commit 09e2ca7

Browse files
Not all apps must run
1 parent 55389b2 commit 09e2ca7

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

kratos.gid/kratos.tcl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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.\nInput files have been written.\nRun the MPILauncher.sh script" ]]
473473
}
474+
set app_run_brake [apps::ExecuteOnCurrentApp BeforeRunCalculation]
475+
if {$app_run_brake}
474476
}
475477

476478
proc Kratos::Event_AfterWriteCalculationFile { filename errorflag } {

0 commit comments

Comments
 (0)