Ignore:
Timestamp:
Mar 12, 2015, 2:15:18 PM (9 years ago)
Author:
lguez
Message:

Correcting a problem from revision 2218. The type double precision
with option "-fdefault-real-8" of gfortran is promoted to 16-byte
precision and there is no specific procedure in arth with this
precision. Could not add a specific procedure in arth with double
precision because, with ifort, the option "-real-size 64" does not
promote the double precision, so that would make two identical
specific procedures in arth.

In module nrtype, replaced double precision by a parameterized real
kind so that the effective precision does not depend on a compiler
option.

In coefpoly, fxhyp, fyhyp and invert_zoom_x, use the parameterized
real kind defined in nrtype, instead of double precision.

Also, in module nrtype, removed unused derived types sprs2_sp and
sprs2_dp.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/bibio/arth.F90

    r1907 r2228  
    77  INTERFACE arth
    88     ! Returns an arithmetic progression, given a first term "first", an
    9      ! increment and a number of terms "n".
     9     ! increment and a number of terms "n" (including "first").
    1010
    1111     MODULE PROCEDURE arth_r, arth_i
    12      ! The difference between the procedures is the type of
    13      ! arguments "first" and "increment" and of function result.
     12     ! The difference between the procedures is the kind and type of
     13     ! arguments first and increment and of function result.
    1414  END INTERFACE
    1515
     
    2222    REAL, INTENT(IN) :: first,increment
    2323    INTEGER, INTENT(IN) :: n
    24     REAL, DIMENSION(n) :: arth_r
     24    REAL arth_r(n)
    2525
    26     ! Variables local to the procedure:
    27 
     26    ! Local:
    2827    INTEGER :: k,k2
    2928    REAL :: temp
     
    5049       end do
    5150    end if
     51
    5252  END FUNCTION arth_r
    5353
     
    5757
    5858    INTEGER, INTENT(IN) :: first,increment,n
    59     INTEGER, DIMENSION(n) :: arth_i
     59    INTEGER arth_i(n)
     60
     61    ! Local:
    6062    INTEGER :: k,k2,temp
     63
     64    !---------------------------------------
     65
    6166    if (n > 0) arth_i(1)=first
    6267    if (n <= NPAR_ARTH) then
     
    7883       end do
    7984    end if
     85
    8086  END FUNCTION arth_i
    8187
Note: See TracChangeset for help on using the changeset viewer.