Arrays in Fortran 77
From: John Bryant (bigjman_99_at_yahoo.com)
Date: 08/18/04
- Next message: Richard Maine: "Re: Fortran Forum - Oh Boy"
- Previous message: Richard Maine: "Re: dynamic memory allocation in subroutines"
- Next in thread: Paul Van Delst: "Re: Arrays in Fortran 77"
- Reply: Paul Van Delst: "Re: Arrays in Fortran 77"
- Reply: David Frank: "Re: Arrays in Fortran 77"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 18 Aug 2004 11:16:32 -0400
**** Post for FREE via your newsreader at post.usenet.com ****
Hi,
I've been given the source code for an operational Fortran program running
on a Unix machine and asked to set it up on a PC. When I attempt to compile
the code everything goes fine except a small portion of the code that reads
and writes a multi dimensional array to a file. I've tried several
compilers and they all report the exact same error.
Here's the guilty parts of the code:
write(11) var1(:,:,m)
.
.
.
read(11) var2(:,:,m,1)
The compiler doesn't like the colon usage. I'm not an experienced fortran
programmer so I'm not entirely sure why this isn't working. Shouldn't the
colons just represent the entire range of each dimension?
I would be so grateful for any help!
Cheers,
John
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*** Usenet.com - The #1 Usenet Newsgroup Service on The Planet! ***
http://www.usenet.com
Unlimited Download - 19 Seperate Servers - 90,000 groups - Uncensored
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- Next message: Richard Maine: "Re: Fortran Forum - Oh Boy"
- Previous message: Richard Maine: "Re: dynamic memory allocation in subroutines"
- Next in thread: Paul Van Delst: "Re: Arrays in Fortran 77"
- Reply: Paul Van Delst: "Re: Arrays in Fortran 77"
- Reply: David Frank: "Re: Arrays in Fortran 77"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]