File tree 3 files changed +3
-3
lines changed 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 243
243
" function endrun(run::G4Run, app::G4JLApplication)::Nothing\n " ,
244
244
" partName = app.generator.data.gun |> GetParticleDefinition |> GetParticleName |> String\n " ,
245
245
" #---end run action is called for each workwer thread and the master one\n " ,
246
- " if G4Threading!G4GetThreadId() == -1 \n " ,
246
+ " if G4Threading!G4GetThreadId() < 0 \n " ,
247
247
" data = app.simdata[1]\n " ,
248
248
" #---This is the master thread, so we need to add all the simuation results-----------------\n " ,
249
249
" for d in app.simdata[2:end]\n " ,
Original file line number Diff line number Diff line change 92
92
# ---End Run Action---------------------------------------------------------------------------------
93
93
function endrun (run:: G4Run , app:: G4JLApplication ):: Nothing
94
94
# ---end run action is called for each workwer thread and the master one
95
- if G4Threading!G4GetThreadId () == - 1
95
+ if G4Threading!G4GetThreadId () < 0
96
96
data = app. simdata[1 ]
97
97
# ---This is the master thread, so we need to add all the simuation results-----------------
98
98
for d in app. simdata[2 : end ]
Original file line number Diff line number Diff line change 256
256
" #---End Run Action---------------------------------------------------------------------------------\n " ,
257
257
" function endrun(run::G4Run, app::G4JLApplication)::Nothing\n " ,
258
258
" #---end run action is called for each workwer thread and the master onc\n " ,
259
- " if G4Threading!G4GetThreadId() == -1 \n " ,
259
+ " if G4Threading!G4GetThreadId() < 0 \n " ,
260
260
" data = app.simdata[1]\n " ,
261
261
" #---This is the master thread, so we need to add all the simuation results-----------------\n " ,
262
262
" for d in app.simdata[2:end]\n " ,
You can’t perform that action at this time.
0 commit comments