PCMSolver / pcmsolver

An API for the Polarizable Continuum Model
http://pcmsolver.readthedocs.io/
GNU Lesser General Public License v3.0
32 stars 21 forks source link

array size warning #204

Open loriab opened 1 year ago

loriab commented 1 year ago

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.

 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