Message: Output of MT application not reproducible Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Output of MT application not reproducible 

Forum: Multithreading
Date: Dec 18, 10:43
From: <herr_apa>

Hi,

I have a multithreaded application that uses MTwistEngine. The result of the simulation is not reproducible. The same behavior is observed in example B1. When compiled out of the box (with RanecuEngine), the result is reproducible.

cmake examples/basic/B1/
make
./exampleB1 examples/basic/B1/run2.mac

This produces the following output every time:

Cumulated dose per run, in scoring volume : 5.13282 nanoGy rms = 146.726 picoGy

However, if I change the line "G4Random::setTheEngine(new CLHEP::RanecuEngine)" to "G4Random::setTheEngine(new CLHEP::MTwistEngine)" I get different results every time. For example:

Cumulated dose per run, in scoring volume : 5.08894 nanoGy rms = 145.376 picoGy
Cumulated dose per run, in scoring volume : 5.39377 nanoGy rms = 146.455 picoGy

This only happens in multithreaded mode. For a single thread, the result is reproducible. Why do I not get reproducible results with multithreading and MTwistEngine?

//
Anders

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

1 Feedback: Re: Output of MT application not reproducible   (Jonathan Madsen - Feb 04, 18:34)
 Add Message Add Message
to: "Output of MT application not reproducible"

 Subscribe Subscribe

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