From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,54e5403400a68677 X-Google-Attributes: gid1164f8,public From: lionel@mail.dec.com (Steve Lionel) Subject: Re: error: floating invalid ??? Date: 1997/05/09 Message-ID: <5kvf24$1c4@usenet.pa.dec.com>#1/1 X-Deja-AN: 240546228 Distribution: world Sender: lionel@quark (Steve Lionel) References: <5knjal$f47$1@inf6serv.rug.ac.be> Organization: Digital Equipment Corporation, Nashua NH Reply-To: lionel@mail.dec.com Newsgroups: comp.sys.dec In article <5knjal$f47$1@inf6serv.rug.ac.be>, schelstr@allserv.rug.ac.be (Sigurd Schelstraete) writes: |>hello, |>I am trying to run a program (in fortran) on an alphastation 500 with |>digital UNIX 4.0A. This program previously ran on a SUN workstation |>without problems. On the alphastation, it runs for a while and then exits |>with the message: |> |>"forrtl: error (65): floating invalid" |>"Abort - core dumped" The most common way to get this error is to have an argument mismatch where you pass a small integer to an argument which expects a real. For example: call foo(1) ... subroutine foo(x) real x The integer 1, when interpreted as a real, looks like an IEEE denormalized value. On Sun systems, these are quietly accepted and processed, and you may never know of the problem. On DIGITAL's systems, the default is that denorms and other IEEE "exceptional values" are errors. If you want the Sun behavior, compile with -fpe1 or -fpe3, depending on what exactly you want (see the User Manual for details on these.) However, a better bet is to compile with -warn argument_checking and see if the compiler notices any mismatches. Even if it doesn't, look for them yourself. The example above is very common, where people write 1 instead of 1.0 (or 1.0D0 for double-precision, and it MATTERS!) -- Steve Lionel mailto:lionel@quark.zko.dec.com Fortran Development http://www.digital.com/info/slionel.html Digital Equipment Corporation 110 Spit Brook Road, ZKO2-3/N30 Nashua, NH 03062-2698 "Free advice is worth every cent" For information on DIGITAL Fortran, see http://www.digital.com/fortran