diff --git a/tutorial/docs/examples/B3/B3a.ipynb b/tutorial/docs/examples/B3/B3a.ipynb index 138e8e2..17bdb99 100644 --- a/tutorial/docs/examples/B3/B3a.ipynb +++ b/tutorial/docs/examples/B3/B3a.ipynb @@ -243,7 +243,7 @@ "function endrun(run::G4Run, app::G4JLApplication)::Nothing\n", " partName = app.generator.data.gun |> GetParticleDefinition |> GetParticleName |> String\n", " #---end run action is called for each workwer thread and the master one\n", - " if G4Threading!G4GetThreadId() == -1\n", + " if G4Threading!G4GetThreadId() < 0\n", " data = app.simdata[1]\n", " #---This is the master thread, so we need to add all the simuation results-----------------\n", " for d in app.simdata[2:end]\n", diff --git a/tutorial/docs/examples/Scintillation/UserActions.jl b/tutorial/docs/examples/Scintillation/UserActions.jl index 1f70717..4c72267 100644 --- a/tutorial/docs/examples/Scintillation/UserActions.jl +++ b/tutorial/docs/examples/Scintillation/UserActions.jl @@ -92,7 +92,7 @@ end #---End Run Action--------------------------------------------------------------------------------- function endrun(run::G4Run, app::G4JLApplication)::Nothing #---end run action is called for each workwer thread and the master one - if G4Threading!G4GetThreadId() == -1 + if G4Threading!G4GetThreadId() < 0 data = app.simdata[1] #---This is the master thread, so we need to add all the simuation results----------------- for d in app.simdata[2:end] diff --git a/tutorial/docs/examples/TestEm3/TestEm3.ipynb b/tutorial/docs/examples/TestEm3/TestEm3.ipynb index aadbd66..4e9f7ba 100644 --- a/tutorial/docs/examples/TestEm3/TestEm3.ipynb +++ b/tutorial/docs/examples/TestEm3/TestEm3.ipynb @@ -256,7 +256,7 @@ "#---End Run Action---------------------------------------------------------------------------------\n", "function endrun(run::G4Run, app::G4JLApplication)::Nothing\n", " #---end run action is called for each workwer thread and the master onc\n", - " if G4Threading!G4GetThreadId() == -1 \n", + " if G4Threading!G4GetThreadId() < 0 \n", " data = app.simdata[1]\n", " #---This is the master thread, so we need to add all the simuation results-----------------\n", " for d in app.simdata[2:end]\n",