<div dir="ltr">Hello Matthew, <div><br></div><div>you're right <span style="font-family:arial,sans-serif;font-size:13px">4294967294 is (almost) the max value for "unsigned long". I did a quick check : in "GateSimulationStatisticActor" the number of events is stored as a "long int" (not unsigned), so the max value should b</span>e 2147483647 (2^31), it can be changed to "unsigned long long int" (uulong to get to 2^64). There are probably other places in the code that can lead to crash with this overflow. </div>
<div><br></div><div>As a quick workaround, I suggest, that you split you simulation in smaller bunches (around 10^9 max).</div><div><br></div><div>You can try to seek in the code for such variables that store events or track number and check if the used types could be changed to something like "ullong". </div>
<div><br></div><div>We will also try to do it, but our todo list is full for the next coming weeks. Albertine => could you please add this issue to the bug tracker ? <br></div><div><br></div><div>FYI : the read-only access to the current git repository of Gate (that contains the current development version with some corrected bugs, and still non-validated features) will be available soon, but it's a bit delayed for technical reasons. </div>
<div><br></div><div>Sincerely, </div><div>David</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 13, 2013 at 8:41 PM, Matthew Belley <span dir="ltr"><<a href="mailto:mdb52@duke.edu" target="_blank">mdb52@duke.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Gate Users,<br><br>I am running simulations with a very high number of particles to obtain good statistics. I am storing dose output using Actors. The simulations terminate early with an error, before running the total number of particles I have specified. I noticed that in my StatsOutput.txt file, that the "NumberOfEvents" value is always equal to 4294967294 when the program terminates. <br>
<br>Considering that 2^32 = <span>4294967296 is very close to the value of</span> 4294967294 -- it seems like I have exceed the storage capacity of the data type that stores event data?<br><br>Is there a fix for this issue to allow me to run a simulation with more events?<br>
<br>Best regards,<br>Matthew Belley<br>
<br>_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a><br>
<a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" target="_blank">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a><br></blockquote></div><br><br clear="all"><div><br></div>
-- <br><div dir="ltr">David Sarrut, Phd<br>Chargé de recherche CNRS<br>CREATIS, UMR CNRS 5220, Inserm U 1044<div>Centre de lutte contre le cancer Léon Bérard<br>28 rue Laënnec, 69373 Lyon cedex 08<br>Tel : 04 78 78 51 51 / 06 74 72 05 42<br>
<a href="http://www.creatis.insa-lyon.fr/~dsarrut" target="_blank">http://www.creatis.insa-lyon.fr/~dsarrut</a><br>_________________________________</div><div> "2 + 2 = 5, for extremely large values of 2"<br>_________________________________</div>
</div>
</div>