Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: lionel@mail.dec.com (Steve Lionel)
Subject: Re: error: floating invalid ???
Date: 1997/05/09	[thread overview]
Message-ID: <5kvf24$1c4@usenet.pa.dec.com> (raw)
In-Reply-To: 5knjal$f47$1@inf6serv.rug.ac.be



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



      parent reply	other threads:[~1997-05-09  4:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-05-06  4:00 error: floating invalid ??? Sigurd Schelstraete
1997-05-06  4:00 ` Ron Natalie
1997-05-08  4:00 ` Dave Butenhof
1997-05-09  4:00 ` Steve Lionel [this message]
read-only archive

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