Re: Simple question about literal constants
beliavsky_at_aol.com
Date: 02/19/04
- Next message: Gary Scott: "Re: VMS Fortran RTL restriction on file names?"
- Previous message: E. Robert Tisdale: "Re: Functions vs. Subroutines"
- In reply to: Bernhard Georg Enders: "Simple question about literal constants"
- Next in thread: Donald Arseneau: "Re: Simple question about literal constants"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 19 Feb 2004 11:59:23 -0800
Bernhard Georg Enders <bgeneto@hotmail.com> wrote in message news:<opr3mgmyq7lwyzod@News.Individual.NET>...
> Hi!
>
> In the following expression
>
> integer, parameter :: dp = selected_real_kind(15)
> real(dp) :: m, x
>
> m = 0.1006_dp*x + 0.0137_dp*x**2
>
> Is the kind type parameter '_dp' really obligatory? What is the rule for
> it's usage?
>
> TIA,
>
> Bernhard.
I find it convenient to just declare all variables as plain REAL and
use the switches available on many compilers to specify whether
single, double or some other precision is to be used. I'll admit it is
not the robust approach.
- Next message: Gary Scott: "Re: VMS Fortran RTL restriction on file names?"
- Previous message: E. Robert Tisdale: "Re: Functions vs. Subroutines"
- In reply to: Bernhard Georg Enders: "Simple question about literal constants"
- Next in thread: Donald Arseneau: "Re: Simple question about literal constants"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|