This warning popped up when using a quite new gfortran. Posting in case it's a concern that you want to remedy for v3.1.
12%] Building Fortran object src/CMakeFiles/pcm-objlib.dir/pedra/pedra_cavity.F90.o
/psi/gits/pcmsolver_clean/src/pedra/pedra_cavity.F90:799:78:
799 | integer(kind=regint_k) :: oldtr(100,100), ednew(90,100), trnew(60,100,100)
| 1
Warning: Array 'trnew' at (1) is larger than limit set by '-fmax-stack-var-size=', moved from stack to static storage. This makes the procedure unsafe when called recursively, or concurrently from multiple threads. Consider increasing the '-fmax-stack-var-size=' limit (or use '-frecursive', which implies unlimited '-fmax-stack-var-size') - or change the code to use an ALLOCATABLE array. If the variable is never accessed concurrently, this warning can be ignored, and the variable could also be declared with the SAVE attribute. [-Wsurprising]
Your Environment
Version used: v.1.2.3
Operating System and version: Linux with gfortran 12.2
Current Behavior
This warning popped up when using a quite new gfortran. Posting in case it's a concern that you want to remedy for v3.1.
Your Environment