Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* DEC F77 on Ultrix 4.3a and OSF 1.2 vs f2c on Linux 1.1.x
@ 1995-02-07  0:25 Robert Wolter
  1995-02-11  2:06 ` Steve Lionel
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Wolter @ 1995-02-07  0:25 UTC (permalink / raw)


I just got a very strange experience:

consider a REAL variable RBUF, a REAL array XREC(A), where A is an
INTEGER and set to some value, say 20 
      PARAMETER(A=20)

Now consider the intrinsic function LOG10: it takes one argument,
a REAL variable. 

My experience now is as follows:
I assign
      IF (XREC(A).GT.0.0) THEN 
        R=LOG10(XREC(A))
      ENDIF
and it works for several times on either
a DECstation running Ultrix 4.3a or DEC Alpha running OSF 1.2.
Then the system suddenly reports a floating point error, divide by zero.

I then compile and run the program on a PC 486 running Linux 1.1.73
and using f77 from the f2c package, and it works!

Now I assign the argument  to a buffer variable:
      IF (XREC(A).GT.0.0) THEN
        RBUF=XREC(A)
        R=LOG10(RBUF)
      ENDIF
and it works also on Ultrix and OSF systems!

My question now: Is this a bug or a feature?

Can DEC managers live in peace with the fact that a free 
FORTRAN compiler (f2c) works more intelligent than a 
commercial high-priced product :) ?

Cheers
  Robert Wolter
  wolter@wppc9.uni-wuppertal.de


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: DEC F77 on Ultrix 4.3a and OSF 1.2 vs f2c on Linux 1.1.x
  1995-02-07  0:25 DEC F77 on Ultrix 4.3a and OSF 1.2 vs f2c on Linux 1.1.x Robert Wolter
@ 1995-02-11  2:06 ` Steve Lionel
  0 siblings, 0 replies; 2+ messages in thread
From: Steve Lionel @ 1995-02-11  2:06 UTC (permalink / raw)


In article <3h6el9$jtr@wmwap1.math.Uni-Wuppertal.DE>, 
wolter@wppc9.physik.Uni-Wuppertal.DE (Robert Wolter) writes:

>consider a REAL variable RBUF, a REAL array XREC(A), where A is an
>INTEGER and set to some value, say 20 
>      PARAMETER(A=20)
>
>My experience now is as follows:
>I assign
>      IF (XREC(A).GT.0.0) THEN 
>        R=LOG10(XREC(A))
>      ENDIF
>and it works for several times on either
>a DECstation running Ultrix 4.3a or DEC Alpha running OSF 1.2.
>Then the system suddenly reports a floating point error, divide by zero.

If you could send me a complete example I'd be glad to look into it.

Steve Lionel                      Mail: lionel@quark.enet.dec.com
DEC Fortran Development           WWW:  http://www.digital.com/info/slionel.html
Digital Equipment Corporation     CompuServe: 75263,3001
110 Spit Brook Road, ZKO2-3/N30
Nashua, NH 03062-2698             "Free advice is worth every cent"

For a summary of Digital's Internet services, send mail to info@digital.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1995-02-11  2:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-02-07  0:25 DEC F77 on Ultrix 4.3a and OSF 1.2 vs f2c on Linux 1.1.x Robert Wolter
1995-02-11  2:06 ` Steve Lionel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox