Re: double precision g77
- From: kargl@xxxxxxxxxxxxxxxxxxxxxxxxxxxx (Steven G. Kargl)
- Date: Tue, 22 Aug 2006 17:30:24 +0000 (UTC)
In article <pan.2006.08.22.17.08.17.913603@xxxxxxxxxxxxxxx>,
Richard Pitman <richard.pitman3@xxxxxxxxxxxxxxx> writes:
Many thanks for your responses, however this is still eluding me.
Since you're using g77, this is Fortran 77 (with some extensions).
Run your code through the ftnchek utility. Fix all warnings and
errors.
I am using IMPLICIT NONE at the start of all my routines and have done
a "grep -i real *.f" to check I haven't missed a declaration. All the
literal constants are in the form 2.0D0 and all functions are declared as
external.
Does the code use EQUIVALENCE?
Do I need to tell a subroutine that the arguments being passed to it are
double precision, other than by declaring them as such with a double
precision declaration in the calling routine and the subroutine?
If you declared the actual arguments and the corresponding
dummy arguments as double precision, then you should be set.
Have you checked that the algorithm is robust to the change in
precision? Are the any "if (x .eq. 3.14159)" type statements?
Comparison for equality of floating point values is tricky.
--
Steve
http://troutmask.apl.washington.edu/~kargl/
.
- References:
- double precision g77
- From: Richard Pitman
- Re: double precision g77
- From: Richard Maine
- Re: double precision g77
- From: Brooks Moses
- Re: double precision g77
- From: Richard Pitman
- double precision g77
- Prev by Date: Re: double precision g77
- Next by Date: Re: Error: derived type contains a pointer component
- Previous by thread: Re: double precision g77
- Next by thread: Re: double precision g77
- Index(es):
Relevant Pages
|