Problem 2184 - Runlux64 engine luxury in MT mode
Summary: Runlux64 engine luxury in MT mode
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: run (show other problems)
Version: 10.5
Hardware: PC All
: P4 normal
Assignee: Gabriele Cosmo
URL:
Depends on:
Blocks:
 
Reported: 2019-08-05 15:38 CEST by Alex Soloviev
Modified: 2019-10-08 08:08 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description Alex Soloviev 2019-08-05 15:38:08 CEST
luxury in threads seems to be set into 1, no matter what was set in original application. 

In my application:
  CLHEP::Ranlux64Engine defaultEngine( 1234567, 4 ); 
  G4Random::setTheEngine( &defaultEngine ); 
  G4long seed;
  seed = time(NULL);
  G4Random::setTheSeed(seed);

In the RunAction::BeginOfRunAction
  CLHEP::HepRandom::showEngineStatus();

The output from master thread: luxury = 4
The output from child threads: luxury = 1
Comment 1 Gabriele Cosmo 2019-10-08 08:08:28 CEST
Thanks for reporting. This is now fixed in the current development branch and will be available in the next release/patch.