Re: Fortran, no RAN ?

Liste des GroupesRevenir à co vms 
Sujet : Re: Fortran, no RAN ?
De : arne (at) *nospam* vajhoej.dk (Arne Vajhøj)
Groupes : comp.os.vms
Date : 17. Jun 2024, 23:12:06
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v4qcbm$urij$1@dont-email.me>
References : 1 2 3
User-Agent : Mozilla Thunderbird
On 6/17/2024 12:09 AM, Michael Brown wrote:
On 17/6/24 03:54, Arne Vajhøj wrote:
On 6/16/2024 12:22 PM, Michael Brown wrote:
I've been building MTREK, written in fortran, on my community edition and it compiles fine but complains of no RAN function at link time.
>
VMS Fortran got both RAN and the standard RANDOM_NUMBER:
 That example was very reassuring when it compiled and ran, so I looked more carefully at my compiler warnings compiling MTREK...
             RNDOM = RAN(I1, I2)
..................^
%F90-W-WARNING, The number of arguments is incompatible with intrinsic procedure, assume 'external'.   [RAN]
at line number 67 in file SYS$SYSDEVICE:[MBROWN.DEVS.MTREK]mtrekini.for;4
 and it is telling me the problem, assumed external because of too many parameters, then it tries to link some external name RAN which isn't there. I can understand this.
 But the question now is why RAN(I1, I2) works on the VAX compiler,and not on the X86_64 compiler. And what is it doing with those 2 parameters on the VAX so I can simulate it somehow.
Are you sure that it is intrinsic and not something picked
up from some library?
What type is RNDOM? Default REAL*4? Or Integer*4?
If INTEGER*4 then my guess would be that:
RAN(I1, I2)
is:
RAN_INT_IN_INTERVAL(LOW_BOUND, HIGH_BOUND)
Arne

Date Sujet#  Auteur
16 Jun 24 * Fortran, no RAN ?28Michael Brown
16 Jun 24 `* Re: Fortran, no RAN ?27Arne Vajhøj
16 Jun 24  +* Re: Fortran, no RAN ?13Arne Vajhøj
17 Jun 24  i`* Re: Fortran, no RAN ?12Lawrence D'Oliveiro
17 Jun 24  i `* Re: Fortran, no RAN ?11Arne Vajhøj
17 Jun 24  i  +* Re: Fortran, no RAN ?9Arne Vajhøj
17 Jun 24  i  i+- Re: Fortran, no RAN ?1Arne Vajhøj
17 Jun 24  i  i`* Re: Fortran, no RAN ?7Lawrence D'Oliveiro
18 Jun 24  i  i `* Re: Fortran, no RAN ?6John Reagan
18 Jun 24  i  i  +- Re: Fortran, no RAN ?1Stephen Hoffman
18 Jun 24  i  i  `* Re: Fortran, no RAN ?4Arne Vajhøj
19 Jun 24  i  i   `* Re: Fortran, no RAN ?3Simon Clubley
19 Jun 24  i  i    `* Re: Fortran, no RAN ?2Chris Townley
19 Jun 24  i  i     `- Re: Fortran, no RAN ?1Simon Clubley
17 Jun 24  i  `- Re: Fortran, no RAN ?1Arne Vajhøj
17 Jun 24  `* Re: Fortran, no RAN ?13Michael Brown
17 Jun 24   `* Re: Fortran, no RAN ?12Arne Vajhøj
18 Jun 24    +* Re: Fortran, no RAN ?9Arne Vajhøj
19 Jun 24    i`* Re: Fortran, no RAN ?8Michael Brown
19 Jun 24    i `* Re: Fortran, no RAN ?7Arne Vajhøj
20 Jun 24    i  `* Re: Fortran, no RAN ?6Michael Brown
20 Jun 24    i   +* Re: Fortran, no RAN ?3abrsvc
20 Jun 24    i   i+- Re: Fortran, no RAN ?1Arne Vajhøj
21 Jun 24    i   i`- Re: Fortran, no RAN ?1Michael Brown
20 Jun 24    i   `* Re: Fortran, no RAN ?2Arne Vajhøj
20 Jun 24    i    `- Re: Fortran, no RAN ?1Arne Vajhøj
18 Jun 24    `* Re: Fortran, no RAN ?2Arne Vajhøj
19 Jun 24     `- Re: Fortran, no RAN ?1Arne Vajhøj

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal