FW: Setting default precision of real-valued constants to real*8 in gfortran
Tobias Burnus
burnus@net-b.de
Mon Sep 8 17:46:00 GMT 2008
Laritz, Thomas wrote:
> I am porting an application from the SGI MIPSpro OS to Linux/gfortran.
> On Sgi MIPSpro, the default precision of real constants is real*8.
> However, in gfortran, the default appears to be real*4. I have
> thoroughly reviewed the gfortran and gcc literature, and have found no
> way to specify use of real*8 as the default for real constants.
>
Try -fdefault-real-8.
See:
http://gcc.gnu.org/onlinedocs/gfortran/Fortran-Dialect-Options.html#index-g_t_0040code_007bfdefault_002dinteger_002d8_007d-28
Tobias
More information about the Fortran
mailing list