For Programmers: Free Programming Magazines  


Home > Archive > Fortran > August 2007 > Re: Can gfortran has the function of define the precision of whole









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Can gfortran has the function of define the precision of whole
glen herrmannsfeldt

2007-08-21, 4:33 am

Arjen Markus wrote:

(snip)
[color=darkred]
> It has that option: -fdefault-real-8


> But why would you want to do that? It makes your program rely on
> parameters outside the source code. While that is almost
> inevitable, it seems to me very bad style not to be able
> to see from the source code whether single or double precision
> is to be used.


There is the ever popular

IMPLICIT DOUBLE PRECISION (A-H,O-Z)

It has its own good and bad points. Being visible in the program
is one of the good points.

-- glen

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com