|Message: RE: Limit on number of primary particles per event?||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
Hi Ben, The maximum event ID is 2^31, i.e. about 10^9. Thus as far as the number of event is concerned, 2^18 is far below the limit. I copy my reply to Fan Lei who is the author of GPS for his comments. Meanwhile, the symptom smells like a memory leak. Could you please monitor the size of your program? Makoto > -----Original Message----- > From: Ben Morgan [mailto:Ben.Morgan@warwick.ac.uk] > Sent: Monday, April 28, 2008 8:09 AM > To: publichypernews > Subject: Limit on number of primary particles per event? > > *** Discussion title: Particles > Email replies to PublicHyperNews@slac.stanford.edu must include: > In-Reply-To: <"/particles/403"@geant4-hn.slac.stanford.edu> > Subject: ...change this to be about your reply. > > Hi, > > I've been writing an application using the GPS where the number of > primary particles will be high, of the order of 10^5-10^6. > However, when > running with more than 262050 (roughly) primary particles, the program > falls over with a seg fault somewhere at the end of the > event, certainly > after "Terminate current event processing" is reported (using > /event/verbose 1). Running in gdb seems to trace back the fault to the > destructor of G4PrimaryParticle (have to admit that I'm not an expert > with gdb...). I've cross-checked this by using the GPS in example N01 > and I see the same behaviour here. > > Just wondered if there's a limit on the number of primary > particles that > can be generated? The number where the seg fault starts to occur is > close to 2^18, although maybe a coincidence? > > Cheers, > > Ben. >
|Inline Depth:||Outline Depth:||Add message:|