Re: ordering integer array



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
.



Relevant Pages

  • Re: student question/ array
    ... student to create a project to analyze an income survey. ... multi dim array. ... A three-column report displaying the input data. ...
    (microsoft.public.vb.general.discussion)
  • Re: Big endian convention in Ruby
    ... if the array holding this is ... messageHex[0].hex.to_i this will ensure that it is a integer in hex. ... Unpack directly to Integers, as shown above. ... It works perfectly fine with in give the loop 64 times.. ...
    (comp.lang.ruby)
  • Re: student question/ array
    ... Create a project to analyze an income survey. ... A menu will contain File, Reports, and Help. ... You can place code in the Click event to display the appropriate array ...
    (microsoft.public.vb.general.discussion)
  • Re: intrinsics performance
    ... intrinsic functions and things like ... U = a*U (where U is an array). ... In order to beat the code generated by any recent gfortran dot_product, you must write more complicated source code, dealing with hardware-specific issues. ... So it's not a simple question of array assignments vs BLAS. ...
    (comp.lang.fortran)
  • Re: intrinsics performance
    ... intrinsic functions and things like ... In order to beat the code generated by any recent gfortran dot_product, you must write more complicated source code, dealing with hardware-specific issues. ... There, however, the question of a temporary array generated by f90 syntax may enter in. ... So it's not a simple question of array assignments vs BLAS. ...
    (comp.lang.fortran)