Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
762 views
in Technique[技术] by (71.8m points)

fortran - Fortan suggestions needed on array values

I'm new to fortran and need some resources where I can start learning the basics. This problem might be very trivial but, currently, I have a code which was written in probably the older version, and is showing a warning message which reads:

gfortran -O2 -ffpe-summary='none' -c argo.f
argo.f:2060:37:

 2051 |       DO J=0,THRESHOLD
      |                                                                        2
......
 2060 |         MUAVNEW = MUAVNEW + MASSJ*SN(J)
      |                                     1
Warning: Array reference at (1) out of bounds (0 < 1) in loop beginning at (2)
argo.f:2061:29:

 2051 |       DO J=0,THRESHOLD
      |                                                                        2
......
 2061 |         DENTOT = DENTOT + SN(J)
      |                             1
Warning: Array reference at (1) out of bounds (0 < 1) in loop beginning at (2)

Could you advise on how to avoid this warning?

question from:https://stackoverflow.com/questions/65652134/fortan-suggestions-needed-on-array-values

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...