|
|
Re: Double precision random number generator in Fortran 77
Posted:
Nov 17, 2005 10:49 AM
|
|
os2_user@hotmail.com wrote: >
...top posting repaired...
> > os2_user@hotmail.com wrote: > > > > > Hugo Pfoertner wrote: > > > > > >>os2_user@hotmail.com wrote: > > >> > > >>>What is a good and free double precision random number generator in > > >>>Fortran 77? Is DUNI from Netlib ok? Is Ranlux available in double > > >>>precision and is it better? Are there better ones than these two > > >>>(longer period, pass all tests etc)? > > >>> > > >>>Thanks. > > >> > > >>Links to several implementations of the Mersenne Twister PRNG written in > > >>Fortran can be found at > > >>http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/VERSIONS/FORTRAN/fortran.html > > > > > > > > > The Fortran 77 version doesn't compile. There is an illegal data > > > statement for the variable mti which is in COMMON. It can be fixed by > > > having a block data statement. Has anyone else noticed this error? > > >
> paul v birke wrote: > > it compiles and runs under watcom > > That's strange. Lahey doesn't like it and my Fortran book says it's an > error.
Do you have strict F77 conformance switch on or is it the default for the Lahey compiler when presented a fixed source file? It is, as noted elsewhere, a quite common extension but not, as you've noted, strict F77.
|
|