Problem 1526 - about G4MTRunManager.cc seeds array
Summary: about G4MTRunManager.cc seeds array
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: run (show other problems)
Version: other
Hardware: PC Linux
: P5 trivial
Assignee: asai
URL:
Depends on:
Blocks:
 
Reported: 2013-10-10 04:52 CEST by Li Chuanlong
Modified: 2014-02-21 22:15 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description Li Chuanlong 2013-10-10 04:52:52 CEST
When i use G4MT with Geant4.10.00.b01, i set the cmd run/beanOn 1000,000,000,
10^9 particals
then get "bad_alloc" error.
i track the problem and find:
in G4MTRunManager.cc line 263,
seeds = new long [ns];
if n_event is 10^9,ns = 2e+9 (by default)
in my 32bit debian wheezy,will get this error.

i think there must be some limit of incident particals number,but there is no limit codes to avoid this kind of error.
Comment 1 asai 2014-02-21 22:15:29 CET
This issue is fixed in the official public version 10.0.
Thanks for reporting this.
Makoto