Although I'm pretty sure all readers of this will be Czechs, I will write it in English anyway .. maybe we'll attract someone even :-)
The wave-flood algorithm used in function WaveTagCtrl234 uses a big portion of stack memory. On the recursion level 8, it gives segmentation fault, because the recursion won't fit into stack. This can be prevented by writing ulimit -s unlimited into terminal, which does the script planetGenScript, by which the program should be run. The clean way how to avoid it would probably be to implement the wave flood algorithm in some better way - there is a lot of space for speedup too! Now, it is pretty bad, I'm afraid.
Although I'm pretty sure all readers of this will be Czechs, I will write it in English anyway .. maybe we'll attract someone even :-)
The wave-flood algorithm used in function WaveTagCtrl234 uses a big portion of stack memory. On the recursion level 8, it gives segmentation fault, because the recursion won't fit into stack. This can be prevented by writing ulimit -s unlimited into terminal, which does the script planetGenScript, by which the program should be run. The clean way how to avoid it would probably be to implement the wave flood algorithm in some better way - there is a lot of space for speedup too! Now, it is pretty bad, I'm afraid.