Skip to content

Commit 9224122

Browse files
committed
Support theadid == -2
1 parent 0fa8e3f commit 9224122

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tutorial/docs/examples/B3/B3a.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@
243243
"function endrun(run::G4Run, app::G4JLApplication)::Nothing\n",
244244
" partName = app.generator.data.gun |> GetParticleDefinition |> GetParticleName |> String\n",
245245
" #---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",
247247
" data = app.simdata[1]\n",
248248
" #---This is the master thread, so we need to add all the simuation results-----------------\n",
249249
" for d in app.simdata[2:end]\n",

tutorial/docs/examples/Scintillation/UserActions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ end
9292
#---End Run Action---------------------------------------------------------------------------------
9393
function endrun(run::G4Run, app::G4JLApplication)::Nothing
9494
#---end run action is called for each workwer thread and the master one
95-
if G4Threading!G4GetThreadId() == -1
95+
if G4Threading!G4GetThreadId() < 0
9696
data = app.simdata[1]
9797
#---This is the master thread, so we need to add all the simuation results-----------------
9898
for d in app.simdata[2:end]

tutorial/docs/examples/TestEm3/TestEm3.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@
256256
"#---End Run Action---------------------------------------------------------------------------------\n",
257257
"function endrun(run::G4Run, app::G4JLApplication)::Nothing\n",
258258
" #---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",
260260
" data = app.simdata[1]\n",
261261
" #---This is the master thread, so we need to add all the simuation results-----------------\n",
262262
" for d in app.simdata[2:end]\n",

0 commit comments

Comments
 (0)