> Date: Tue, 14 Nov 2000 18:40:43 +0100
> From: Pascal Richard <[log in to unmask]>
> Phillip Helbig wrote:
> I agree you can need a relative double precision and that
>
> A solution should be to use :
>
> integer, parameter :: digits = 10 ! my regular precision
> integer, parameter :: R1 = selected_real_kind(digits)
> integer, parameter :: R2 = selected_real-kind(2*digits)
>
> for portability, i think we should always use kind.
This won't be portable. On many machines, R1 will be double precison
and R2 will specify 20 digits, which will exceed the available precision.
For a discussion of portability issues, please see "Writing Portable Software"
which was published in the Fortran Forum.
> Pascal
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|