Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NextEventQueue: do not crash if no events are defined
This is most likely an operator error, but we should handle it gracefully. 12:18:56.255 E n.n.BaseCalc - neurord.numeric.grid.AdaptiveGridCalc@6c9f5c0d: failed (seed=123) 12:18:56.255 E n.SDCalc - Trial 0 failed! java.lang.ArrayIndexOutOfBoundsException: 0 at neurord.numeric.grid.NextEventQueue$PriorityTree.first(NextEventQueue.java:142) ~[classes/:?] at neurord.numeric.grid.NextEventQueue.advance(NextEventQueue.java:1999) ~[classes/:?] at neurord.numeric.grid.AdaptiveGridCalc.advance(AdaptiveGridCalc.java:108) ~[classes/:?] at neurord.numeric.grid.GridCalc._run(GridCalc.java:151) ~[classes/:?] at neurord.numeric.BaseCalc.run(BaseCalc.java:121) ~[classes/:?] at neurord.SDCalc.run(SDCalc.java:87) [classes/:?] at neurord.StochDiff.main(StochDiff.java:184) [classes/:?] ↓ 12:26:26.944 W n.n.g.NextEventQueue - Event queue is empty — no diffusion, reaction, or stimulation events
- Loading branch information