Hi there. My environment is: Win 7==>Oracle VB=>>Ubuntu==>Gfortran. I am trying to restore my previous FORTRAN skills starting with something elementary. This is the code:
Code:
#Attempt to read a few files in the directory and compare the values
program main
real :: val
900 format (F8.3)
open (unit=1, file = "gray_disk_impr_100_256_128.dat", status = 'old')
read (unit=1,900) val
write (unit=6,900) val
close (unit=1)
end
While compiling I get this error. It points to read and write statements (identical errors). The pointer points to the number 900 (format). It says:
Code:
fortran_1.f08:6.16:
read (unit=1,900) val
1
Error: Syntax error in READ statement at (1)
You can see that the source code file extension is .f08. I also tried to use an asterisk instead of a numbered format statement and it gave me an error. Where is the problem?
Thanks, - Alex
P.S. Also Is there a description of all error codes for GFortran?