Closed cgrudz closed 2 years ago
I won't pretend to understand, since I don't really know Fortran. It seems like a weird warning, given current computing limits, even with recursion in the picture. I tested the PR, including checking that the same output is generated by the simulator -- all good. Thanks a lot!
f2py was giving warnings / errors over the size of arrays exceeding stack sizes on my cluser environment, yet I couldn't seem to find a way to change the stack size with ulimit commands or to pass a
-fmax-stack-var-size=
or afrecursive
build option to gfortran through f2py as per the warning message. Changing the typing to allocatable and allocating the arrays in their instance as per https://www.scivision.dev/gfortran-stack-to-static-warning/ fixed these compile issues. Example issue is copied below: