Re: ordering integer array
- From: Ron Ford <ron@xxxxxxxxxxxxxxx>
- Date: Mon, 18 Aug 2008 21:39:05 -0600
On Mon, 18 Aug 2008 14:18:02 -0700, Richard Maine posted:
This does not compile with G95. Perhaps it is a compiler error. G95
does not document this call
No, it is not a compiler error. It is an error in the code. The reason
for the error was discussed previously in this thread - that argument is
required to be a rank 1 array rather than a scalar.
If we're thinking of the same instance, it was actually gfortran that
insisted that the seed be an array. I'd never made an array out of the
clock before, but this seems to fit the bill for gfortran:
integer, dimension(100)::E
! seed random num generator
do i=1,100
CALL SYSTEM_CLOCK(COUNT=clock)
E(i)=clock
end do
!print *, E
CALL RANDOM_SEED(PUT = E)
Apparently, gfortran wants a vector larger than six integers, too. Do I
take it that a rank zero seed is non-standard?
Admitedly, the message I get from g95 is a bit confusing, but that's
another matter. I can sort of see how that message comes about.
(The second message. The first one I got was from the invalid characters
in the continuation line. Hex CA? Anyway, I replaced those by blanks.)
Hex CA sounds like a leftover from the zipcode sort. (?)
--
Wealth - any income that is at least one hundred dollars more a year than
the income of one's wife's sister's husband. 6
H. L. Mencken
.
- Follow-Ups:
- Re: ordering integer array
- From: Richard Maine
- Re: ordering integer array
- References:
- ordering integer array
- From: Ron Ford
- Re: ordering integer array
- From: e p chandler
- Re: ordering integer array
- From: Ron Ford
- Re: ordering integer array
- From: e p chandler
- Re: ordering integer array
- From: Richard Maine
- ordering integer array
- Prev by Date: Re: ordering integer array
- Next by Date: Re: ordering integer array
- Previous by thread: Re: ordering integer array
- Next by thread: Re: ordering integer array
- Index(es):
Relevant Pages
|
|