If the problem required 11 decimals, you should have used S_R_K(11) not
9, and then check to see if the kind returned is -1.
=
Otherwise, you could use S_R_K(9) and then do a PRECISION inquiry on the
resulting kind to see if the precision is at least 11.
=
So it is not so much a "real ... hole" as a requirement that you have to
do a bit more work if you want to know what is actually going on.
=
Loren P. Meissner
[log in to unmask]
> -----Original Message-----
> From: [log in to unmask]
> [mailto:[log in to unmask]]On Behalf Of Michael
> Metcalf
> Sent: Thursday, October 15, 1998 1:25 AM
> To: Swietanowski Artur
> Cc: comp-fortran-90
> Subject: Re: Using KIND correctly
>
. . .
> A real (no pun intended) hole in the portability comes when
> developing code with, say, SELECTED_REAL_KIND(9) and getting
> 14 on the development processor but only 9 on a second one. If the
> problem really (sorry) required 11, it will work on the first
> but not on
> the second.
>
> Regards,
>
> Mike Metcalf
>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|