Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

The EOF operator

Status
Not open for further replies.

biebo

Programmer
Apr 14, 2012
1
Hello All,

I am new to fortran, I am compiling a program that uses file operations. I am getting the following error,

DO WHILE (.NOT. EOF(INPUT1))
1
Error: Operand of .NOT. operator at (1) is REAL(8)

I will appreciate any help in this regard.
thanks

--------------
More info

I went though the source code,

INPUT1 is declared like:

INPUT1 = 1

it is read couple of times like:

READ(INPUT1,*) LABEL

here LABEL is: CHARACTER (LEN=80) LABEL

then it is rewind like:

REWIND INPUT1

then the statement which gives the error is called:

LOOP_1234 : DO WHILE (.NOT. EOF(INPUT1))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top