Re: floating-point DO loops
- From: nospam@xxxxxxxxxxxxx (Richard E Maine)
- Date: Wed, 13 Sep 2006 12:46:09 -0700
glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
How about:
x = x1*(float(n_steps-i)/float(n_step-1))+x2*(float(i-1)/float(n_steps-1))
Any other matters aside, I'd recommend updating to at least Fortran 77.
:-)
The float intrinsic is a holdover from Fortran 66. While it is still in
the standard (even f2003 - and I recall no proposal to delete it from
f2008 either) for compatibility, you'd have to work darned hard to find
any case where I'd say it made sense to use it today. This isn't even
close to such a case.
--
Richard Maine | Good judgment comes from experience;
email: my first.last at org.domain| experience comes from bad judgment.
org: nasa, domain: gov | -- Mark Twain
.
- Follow-Ups:
- Re: floating-point DO loops
- From: glen herrmannsfeldt
- Re: floating-point DO loops
- References:
- floating-point DO loops
- From: robert . corbett
- Re: floating-point DO loops
- From: Brooks Moses
- Re: floating-point DO loops
- From: Ron Shepard
- Re: floating-point DO loops
- From: robert . corbett
- Re: floating-point DO loops
- From: Brooks Moses
- Re: floating-point DO loops
- From: Rich Townsend
- Re: floating-point DO loops
- From: Rich Townsend
- Re: floating-point DO loops
- From: glen herrmannsfeldt
- floating-point DO loops
- Prev by Date: Re: floating-point DO loops
- Next by Date: Re: require to a subroutine
- Previous by thread: Re: floating-point DO loops
- Next by thread: Re: floating-point DO loops
- Index(es):
Relevant Pages
|