new real type compatible with other real intrinsics

From: Osiris (Osiris_at_gizeh.eg)
Date: 03/29/05


Date: Tue, 29 Mar 2005 15:39:32 GMT

Hi all,
I'd like to define my own real type which can be customized at compile time
but which should still be compatible with real and double precision for
linking with lapack and arpack libraries.

What is the better way to do it ?

Would it be worth to define a new type ? if so how can I define it to be
compatible with real or with double precision ?



Relevant Pages

  • Re: range and precision of srk call
    ... What is he asking his compiler for here? ... Returns a value of the kind type parameter of a real type ... with decimal precision of at least P digits and a decimal exponent range ...
    (comp.lang.fortran)
  • Re: range and precision of srk call
    ... Returns a value of the kind type parameter of a real type ... with decimal precision of at least P digits and a decimal exponent range ...
    (comp.lang.fortran)
  • Re: F01ADF
    ... besides Richard's to the algorithm: some compilers ... have no REAL type with kind=8. ... whatever the particular compiler thinks is double precision. ... Better still would be to put in, before any REAL declarations, ...
    (comp.lang.fortran)
  • Re: Variable division, assignment and sprintf in one line
    ... it by another 1024, assign it again to $var, then format the ... I did not know that multiplication would be done at compile time. ... optimize it and spit it out as formatted Perl code again. ... 'twasn't about precision. ...
    (perl.beginners)
  • Re: Precision of literal real constants, parameters, and Fortran ?standard
    ... glen herrmannsfeldt wrote: ... The Intel x87 (and maybe other ... easy to reduce the precision of a value in an internal register. ... Another possible cause for different results is compile time ...
    (comp.lang.fortran)