Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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

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

1 Answer

Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...