Re: WRITE + new line
- From: "James Giles" <jamesgiles@xxxxxxxxxxxxxxxx>
- Date: Tue, 15 Nov 2005 20:13:34 GMT
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
.
- Follow-Ups:
- Re: WRITE + new line
- From: Dan Nagle
- Re: WRITE + new line
- References:
- WRITE + new line
- From: Martin Glaser
- Re: WRITE + new line
- From: robin
- Re: WRITE + new line
- From: Dan Nagle
- Re: WRITE + new line
- From: glen herrmannsfeldt
- Re: WRITE + new line
- From: Dan Nagle
- WRITE + new line
- Prev by Date: Re: X11 libraries for FORTRAN on OSX or Linux?
- Next by Date: Re: TRIM
- Previous by thread: Re: WRITE + new line
- Next by thread: Re: WRITE + new line
- Index(es):
Relevant Pages
|
|