real*8 declarations for variables using g77

Tobias Schlüter tobias.schlueter@physik.uni-muenchen.de
Mon Dec 1 19:48:00 GMT 2008


Hi Philip,

Philip J. Dumont wrote:
>     I am using g77 to compile and load a fortran code that was written 
> about 15 years ago.  All the variables are explicitly declared in the 
> code.  Double precision variables are declared as real*8.  I looked at 
> documentation for g77 on your website, which indicated that these 
> variables should be declared as double precision.  Does the g77 compiler 
> interpret variables declared as real*8 as double precision?

your question is off-topic, but the answer is 'yes'.  REAL*8 is a 
non-standard synonym for DOUBLE PRECISION.

Cheers,
- Tobi



More information about the Fortran mailing list