Closed mbtaylor closed 4 years ago
The problem was due to a too small estimate of the number of cells in the output MOC.
If Java were supporting collections on primitives, I would have used an ArrayList
So far, I simplify the estimate and take a more conservative value.
I promise that if you encounter again a problem, I will make the effort to implement a grow-able object.
So I close this issue for the time being.
Thanks. If you do decide to use a growable object, I have primitive list implementations at https://github.com/Starlink/starjava/blob/master/util/src/main/uk/ac/starlink/util/LongList.java etc which you're welcome to pinch if you like (I don't suggest making a dependency on my library, just cut'n'paste the code as required).
If I run this:
I get
Is my cone too big?