Re: WRITE + new line



Dan Nagle wrote:
....
>> It should still start a new line for each row.
>
> I don't see, off hand, where in 10.9.2 this is required.

The piece of code to which the phrase "this should start a new line
for each row" originally referred was:

> DO i=1, length1
> WRITE(*,*) (array(i,j), j=1, length2)
> END DO

And, indeed, this should start a new line for each row, since
each row is written by a different pass through the loop, and
so, by a different WRITE.

Now, if the code were:

WRITE(*,*) ((Array(i,j), j=1, length2), i=1,length1)

Here there is no requirement that any new lines be embedded
at all (except at the start of the record).

--
J. Giles

"I conclude that there are two ways of constructing a software
design: One way is to make it so simple that there are obviously
no deficiencies and the other way is to make it so complicated
that there are no obvious deficiencies." -- C. A. R. Hoare


.



Relevant Pages

  • Re: Variable length/precision formats?
    ... Dan Nagle wrote: ... It's a solid point against VFEs. ... the remark that the semantics were clearly specified in the ... no deficiencies and the other way is to make it so complicated ...
    (comp.lang.fortran)
  • Re: Module variables
    ... John Keenan wrote: ... design: One way is to make it so simple that there are obviously ... no deficiencies and the other way is to make it so complicated ... R. Hoare ...
    (comp.lang.fortran)
  • Re: Kind of NOT integer constant
    ... > James Giles wrote: ... >> Dan Nagle wrote: ... And the interpretation is processor dependent. ... no deficiencies and the other way is to make it so complicated ...
    (comp.lang.fortran)
  • Re: indentation - unbalanced parentheses
    ... glen herrmannsfeldt wrote: ... design: One way is to make it so simple that there are obviously ... no deficiencies and the other way is to make it so complicated ... R. Hoare ...
    (comp.lang.fortran)
  • Re: Variable length/precision formats?
    ... The whole technique is only useful once. ... design: One way is to make it so simple that there are obviously ... no deficiencies and the other way is to make it so complicated ... R. Hoare ...
    (comp.lang.fortran)