[gate-users] Random seed initialization

Capit Nicolas nicolas.capit at imag.fr
Tue Jul 27 12:46:58 CEST 2004


Hello,

I want to start a large amount of Gate jobs on a cluster and it is necessary to change the random seed for each job (otherwise I will obtain the same result for each of them).

I tried to use the command "/random/resetEngineFrom" but there is (in all case) a running error : 

 *** Break *** segmentation violation
Generating stack trace...
j97 = 1089915644, u[j97] = Abort 

Is this a bug or I don't use this command correctly?
Is there an other method to change the random seed?

Thank you for your help.



This is the entire execution trace:

[moreira at bioimage ~]$ Gate 4tete3.mac
**********************************************
Geant4 version $Name: geant4-05-02-patch-02 $
                               (3-October-2003)
            Copyright : Geant4 Collaboration
**********************************************
Time set to (s) 0
/grdm/verbose 0
***** COMMAND NOT FOUND </grdm/verbose 0> *****
***** Command ignored *****
/event/verbose 0
/tracking/verbose 0
/gate/application/verbose 0
/gate/generator/verbose 0
/gate/stacking/verbose 0
/gate/event/verbose 0
/gate/source/verbose 0
/run/verbose 1
/random/setSavingFlag 1
/random/setDirectoryName ./
/random/resetEngineFrom toto.rndm
RandomNumberEngineStatus restored from file: ./toto.rndm

----- HepJamesRandom engine status -----
Initial seed = 9876
u[] = 0.082106 0.883674 0.958512 0.690013 0.0250537 0.142294 0.783649 0.356081 0.214774 0.69287 0.700302 0.465109 0.22215 0.768752 0.461089 0.397602 0.522215 0.121546 0.960227 0.510892 0.0116568 0.0286447 0.238777 0.585219 0.780612 0.709182 0.082106 0.828601 0.61446 0.0798209 0.688002 0.00978529 0.370831 0.376435 0.710184 0.864017 0.167338 0.21114 0.349235 0.522479 0.943713 0.0702708 0.778742 0.639458 0.506555 0.151751 0.990123 0.564688 0.430497 0.889832 0.995398 0.725368 0.710512 0.0550886 0.0540335 0.0159176 0.728379 0.947141 0.34922 0.20551 0.351029 0.672539 0.118976 0.655784 0.195375 0.0380308 0.293556 0.237497 0.79723 0.158375 0.029761 0.602215 0.616657 0.995638 0.734827 0.943425 0.130007 0.277064 0.306344 0.973337 0.183926 0.547536 0.914344 0.666572 0.210074 0.300351 0.83602 0.267525 0.248549 0.533332 0.1754 0.299529 0.538308 0.555472 0.283894 0.485254 0.222273
c = 0.0216029, cd = 0.456233, cm = 1
i97 = 40, u[i97] = 0.943713

*** Break *** segmentation violation
Generating stack trace...
j97 = 1089915644, u[j97] = Abort 


-- 
---------------------
Nicolas Capit
Laboratoire TIMC-IMAG
tel : 04 76 61 20 31
---------------------


More information about the Gate-users mailing list