At 18:02 07-11-97 +0100, you wrote:
>Hello,
>
>I want to compile a program written in Fortran77 with a Fortran90 compiler
>(the cf90 v1.1, to be precise).
>Now, in a line such as
> DATA BLANK/8H /
>I get the following error message: "This Hollerith constant is longer than
>one word."
>Thus I first want to ask you what I have to change. Is it the source code,
>or does there exist some other way to make the compiler accept this
>(obsolete) statement? The online help says
>"A Hollerith constant used as a numeric constant cannot be longer than one
>word."
You might try
Double Precision Blank
Data Blank / 8H / ! Very old fashioned !
But of course
Character*8 Blank
Data Blank / ' ' / ! Frtran 77
is better.
Or even:
Character(Len=8) :: Blank = ' ' ! Fortran 90/95
or:
Character(Len=8), parameter :: Blank = ' '
---
Best Greetings,
Jan van Oosterwijk
Computing Centre
Delft University of Technology
P.O. Box 354
2600 AJ Delft
Netherlands
Phone: +31 15 278 50 17
Fax: +31 15 278 37 87
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|