Google Groups Home Help | Sign in
Message from discussion Treacherous Behavior of "gfortran" Compiler?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
qquito  
View profile
 More options May 4, 2:26 pm
Newsgroups: comp.lang.fortran
From: qquito <qqu...@hotmail.com>
Date: Sun, 4 May 2008 11:26:35 -0700 (PDT)
Local: Sun, May 4 2008 2:26 pm
Subject: Treacherous Behavior of "gfortran" Compiler?
Dear Everyone:

I use a "Power Mac G5", and "gfortran" compiler for my Fortran 90
codes. (The same compiler also compiles Fortran 95 and 03.)

Recently on two occasions, I attempted to treat the size of an array
as larger than it was defined at the beginning of my Fortran 90 code.
(This was a long code and was modified from an earlier one, and there
were many arrays whose sizes were defined by parameters given in the
same code, so the problem was not easily spotted simply by viewing the
source code.) In other words, it is like

..........................................
integer, parameter:: max=10
real:: a(max)

integer:: i

do i=1, 50
    a(i)=float(i)*100.0
enddo
..........................................

The problem is that the "gfortran" compiler does NOT give me any error
information, nor do I get any error message when I run the job. It is
only when I look at the output data files that I notice the messy and
apparently wrong results. It took me quite a few attempts to find out
the problem.

Has anyone had similar problems? Is there anyway to let the "gfortran"
compiler report this problem?

Thank you for reading and replying!

--Roland


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google