How large can an automatic array (on the heap) be?

Your findings are very interesting, thanks! I thought that if you have large arrays it is better to define them as allocatable. With automatic arrays you run into memory problem because they are saved on the stack and the stack has limited size. So I’m quite surprised of your results

1 Like