<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Dear Camino users,</p>
    <p> I came across the following ArrayIndexOutOfBoundsException when
      running datasynth command for montecarlo simulations.<br>
    </p>
    <p><br>
    </p>
    <p>Oct 18, 2019 12:39:15 PM simulation.dynamics.StepGeneratorFactory
      getStepGenerator<br>
      INFO: instantiating fixed length step generator<br>
      Oct 18, 2019 12:39:16 PM
      simulation.geometry.substrates.SquashyInflammationSubstrate
      &lt;init&gt;<br>
      INFO: arranging cylinders<br>
      Oct 18, 2019 12:39:16 PM
      simulation.geometry.substrates.SquashyInflammationSubstrate
      &lt;init&gt;<br>
      INFO: initialising dynamic spatial optimisation<br>
      Oct 18, 2019 12:39:16 PM
      simulation.geometry.substrates.SquashyInflammationSubstrate
      &lt;init&gt;<br>
      INFO: arranging cylinders<br>
      Oct 18, 2019 12:39:16 PM
      simulation.geometry.substrates.SquashyInflammationSubstrate
      &lt;init&gt;<br>
      INFO: cylinder 0 (0% complete)<br>
      Exception in thread "main"
      java.lang.ArrayIndexOutOfBoundsException: -1845339287<br>
              at
simulation.geometry.substrates.SquashyInflammationSubstrate.checkIntersections(SquashyInflammationSubstrate.java:1157)<br>
              at
simulation.geometry.substrates.SquashyInflammationSubstrate.&lt;init&gt;(SquashyInflammationSubstrate.java:256)<br>
              at
simulation.geometry.substrates.SubstrateFactory.getSubstrate(SubstrateFactory.java:80)<br>
              at
simulation.DiffusionSimulation.&lt;init&gt;(DiffusionSimulation.java:143)<br>
              at
tools.CL_Initializer.initDataSynthesizerFromSimulation(CL_Initializer.java:2160)<br>
              at
      tools.CL_Initializer.initDataSynthesizer(CL_Initializer.java:2191)<br>
              at apps.SyntheticData.initOptions(SyntheticData.java:55)<br>
              at apps.Executable.&lt;init&gt;(Executable.java:24)<br>
              at apps.SyntheticData.&lt;init&gt;(SyntheticData.java:34)<br>
              at apps.EntryPoint.getExecutable(EntryPoint.java:234)<br>
              at apps.EntryPoint.main(EntryPoint.java:291)<br>
    </p>
    <p>Example command is given below: (just to save the time, I have
      used less number of walkers and timesteps in this run)<br>
    </p>
    <p>datasynth -walkers 25000 -tmax 500 -geometry inflammation
      -numcylinders 100 -p 0.0 -initial uniform -voxels 1 -increments 1
      -separateruns <b>-latticesize 1.4E-5 </b>-seed 
      &lt;&lt;random_number&gt;&gt; -schemefile %s -<b>g</b><b>amma %f
        %f </b>-diffusivity 1.5E-9 -cylfile testcyls.csv
      -drawcrosssection LamDlaSubstrate.gray<br>
    </p>
    <p>Shape and scale of the gamma distribution are  random values in
      the following ranges  which are calculated from the mean and
      standard deviation.<br>
    </p>
    <p> Range of mean (random_mean)--&gt; (0.2E-6 , 5.0E-6)
                                                                                                                                   
      <br>
      Range of standard deviation (std) ---&gt; [ (0.1E-6,
      random_mean/5),  random_mean/2) ]<br>
       Shape_k = (random_mean / std) ** 2</p>
    <p> Scale_theta =  (std ** 2) / random_mean<br>
          <br>
    </p>
    <p>Could someone help me to fix this?</p>
    <p>Thanks and regards,</p>
    <p>Lekshmi<br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
  </body>
</html>