Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

array size warning #204

Open
loriab opened this issue Apr 7, 2023 · 0 comments
Open

array size warning #204

loriab opened this issue Apr 7, 2023 · 0 comments

Comments

@loriab
Copy link
Contributor

loriab commented Apr 7, 2023

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

  • Version used: v.1.2.3
  • Operating System and version: Linux with gfortran 12.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant