What do you prefer: real(8) or double precision and why?

From: Arindam Chakraborty (arimail77_at_yahoo.com)
Date: 08/24/04


Date: 24 Aug 2004 10:42:19 -0700

Hi,
 Right now i always use
     double precision :: a
 in my FORTRAN 90 codes.

But I am not sure if this is same as
     real(8) :: a
in FORTRAN 90.

I am planning to switch from
    double precision :: a
to
    integer, parameter :: WP=8
    real(kind=WP) :: a

I am curious to know what experienced FORTRAN 90
programmers prefer and why?

Thanks in advance
--Ari



Relevant Pages

  • Re: A question on Newtons Method
    ... >> I can't believe you'd advise a noob to use a compiler which is still ... > production codes and codes from textbooks. ... > The Fortran standard generally does not specify the required behavior ... >> another important class of hassle which most numerical programmers ...
    (sci.math.num-analysis)
  • Re: thoughts on dynamic from a beginners perspective
    ... working engineering and heavy duty numerical codes from Fortran to ... writing such codes today. ... Interoperating between managed languages makes it trivial to ...
    (comp.programming)
  • Re: which language?
    ... if he needs 6 months to learn fortran... ... For programmers writing codes that require a very good understanding of ... efficiant codes of such a nature. ... I'd say that Fortran's lack of regard comes from programmers who don't (and ...
    (comp.programming)
  • Re: MSPF/CVF/CVF DLL calling a LF90/LF95 DLL?
    ... which it blithely assumes has been sent using the calling ... > conventions etc. it understands. ... > only works from C, or from Fortran, or whatever. ... sources of errors in f77 codes and were occasionally very tricky to ...
    (comp.lang.fortran)
  • Re: declarations summary
    ... Well, many scientists and engineers don't have the time, motivation or ... ability to master the intricacies of recent fortran vintages either. ... Toy codes will probably move from Matlab to Python soon enough, ...
    (comp.lang.python)