Message: Multi-threading beta using optical photons Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Multi-threading beta using optical photons 

Forum: Multithreading
Date: 12 Sep, 2013
From: John Watts <John Watts>

I have modified my code for the multi-threaded beta. The code transports optical photons uses a modified copy of G4OpticalPhysics source. (I removed the data member, G4bool wasActivated, and its logic from the code. This allowed the worker threads to create the various optical processes.) The code runs successfully in sequential mode it appears to be unstable in multi-threaded mode. That is it is unpredictable as to whether is will run to completion. When it fails I get the following diagnostic:

G4WT7 > G4VParticleChange::Initialize() Warning  theListOfSecondaries is not empty 
G4WT7 > All objects in theListOfSecondaries are destroyed!
G4WT1 > 
-------- EEEE ------- G4Exception-START -------- EEEE -------
*** G4Exception : TRACK003
      issued by : G4ParticleChange::CheckIt
momentum, energy, and/or time was illegal
*** Event Must Be Aborted ***
-------- EEEE -------- G4Exception-END --------- EEEE -------

Segmentation fault

At other times with the same input it runs to completion with no diagnostics.

I noticed the extended examples, LXe, which uses G4OpticalPhysics has not been converted to be multi-threaded. Are there issues with G4OpticalPhysics for multi-threading?

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Warning: Re: Multi-threading beta using optical photons   (Andrea Dotti - 25 Oct, 2013)
 Add Message Add Message
to: "Multi-threading beta using optical photons"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews