Setting default precision of real-valued constants to real*8 in gfortran
Dennis Wassel
dennis.wassel@googlemail.com
Mon Sep 8 19:30:00 GMT 2008
2008/9/8 Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>:
> Dennis Wassel wrote:
>>
>> Still, you mentioned floating point *constants*, and those are a whole
>> different story:
>> REAL, PARAMETER :: pi = 3.141592653589793 is not going to benefit from
>> additional precision by -fdefault-real-8, unless you add the "_8"
>> suffix to promote the numerical constant itself to double precision.
>> This is also valid if your existing code uses F77-style
>> PARAMETER(PI=3.141592653589793) statements instead.
>
> This is not true:
> [...]
>
> schluter@pcl331 ~$ gfortran --version
> GNU Fortran 95 (GCC) 4.1.2 20060907 (prerelease)
Whooops, my bad! Tobias is right: My Helloworld test on this did
something interesting, but not really test -fdefault-real...
Sorry for the confusion and thanks for looking closely!
-- Dennis, embarrassed
More information about the Fortran
mailing list