Two of Eef's bugs, was: Re: gfortran
Steve Kargl
sgk@troutmask.apl.washington.edu
Fri Dec 22 22:37:00 GMT 2006
On Fri, Dec 22, 2006 at 10:27:43PM +0100, Thomas Koenig wrote:
> On Fri, Dec 22, 2006 at 09:20:12AM -0800, Steve Kargl wrote:
>
> > "Integer output constants are produced with the effect of
> > an Iw edit descriptor."
> > ...
> > "For numeric output, reasonable processor-dependent values
> > of w, d, and e are used for each of the numeric constants
> > output."
>
> In this case, we could make the default format for list-directed
> output of integers '(" ",I0)'.
> >
> > For portable code, Eef needs to determine the processor-dependent
> > value for w.
>
> I don't think w has to be the same value for all constants. It
> would probably be best to use a format that cannot overflow
> the substring, such as
>
> write (unit=c(1:5),fmt='(I5)') i
I won't mind a format of (" ",XXX) where for integer or
real formatting XXX is such that the *minimum* number of
characters needed to write the result are used.
--
Steve
More information about the Fortran
mailing list