Re: Portable isfinite for gfortran 4.0.3 and ifort 8.1/9.0
- From: kargl@xxxxxxxxxxxxxxxxxxxxxxxxxxxx (Steven G. Kargl)
- Date: Sat, 15 Jul 2006 15:44:06 +0000 (UTC)
In article <1152959999.935400.224490@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"Niels L Ellegaard" <niels.ellegaard@xxxxxxxxx> writes:
I am looking for an implementation of isfinite that works on the
following three compilers
gfortran 4.0.3, ifort 8.1, and ifort 9.0
You probably want to upgrade to at least gfortran 4.1.1.
I do not use the -fastmath flag when compiling, but I do use the
optimization flags. what is the simplest failproof way to do the test?
See Joost's post for a function that may work. Some
compilers may optimize 'isfinite = (a-a).EQ.0' to TRUE for
all values of 'a'.
--
Steve
http://troutmask.apl.washington.edu/~kargl/
.
- References:
- Portable isfinite for gfortran 4.0.3 and ifort 8.1/9.0
- From: Niels L Ellegaard
- Portable isfinite for gfortran 4.0.3 and ifort 8.1/9.0
- Prev by Date: Re: Algorithm for distance from point to function
- Next by Date: Re: Algorithm for distance from point to function
- Previous by thread: Re: Portable isfinite for gfortran 4.0.3 and ifort 8.1/9.0
- Index(es):
Relevant Pages
|
|