Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
939 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 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...