Re: increasing width



On Mar 10, 5:00 pm, "Lane Straatman" <inva...@xxxxxxxxxxx> wrote:
The error is from the line:
real(8) :: total, term
, which I get every time I want to declare real(8). The warning that it
issues would seem to point to the way out. How do I make a real variable
with 'SELECTED_REAL_KIND(6,37)'?

A hard-coded KIND specifier, which the (8) is, is non-portable, Most
Fortrans use kind 8 for double precision but not all. What your
compiler helpfully recommends is this:

real(KIND=SELECTED_REAL_KIND(6,37)) :: varname

This says "give me the kind of REAL that has at least 6 decimal digits
of precision and a range of at least 10**+-37" It is portable to any
Fortran 90 or later implementation.

Steve

.



Relevant Pages

  • Re: Interactive `setq, redux
    ... | ridiculous, IMO, that one can't use `setq' in this way. ... and one line of warning when using the ... warning, but declare the variable special, along the lines of: "Warning: ... The debate seems to center around the "newbie experience". ...
    (comp.lang.lisp)
  • Re: Where to declare Variables
    ... To minimize the actual php code on this page I include all the ... the input fields have php variables to display the ... Now to prevent notice warning for the variable I set it in the ... first it is a good practice to declare the variables before using them. ...
    (comp.lang.php)
  • Re: how can I find out all the unused functions?
    ... > int Nouse(); ... There's no reason to issue a warning for the above code (at least not ... It's also better to declare ...
    (comp.lang.c)
  • Re: Where to declare Variables
    ... the input fields have php variables to display the ... Now to prevent notice warning for the variable I set it in the ... first it is a good practice to declare the variables before using them. ... The problem you describe sounds like a Zend IDE problem. ...
    (comp.lang.php)
  • Re: how to declare ignore for loop?
    ... (format t "~a" b)) ... Warning ...: A is bound but not referenced ... Warning ...: Badly placed declare: ) ... you can use (loop for (nil b) ...) but it will not document what ...
    (comp.lang.lisp)