Changeset 2228 for LMDZ5/trunk/libf/bibio/arth.F90
- Timestamp:
- Mar 12, 2015, 2:15:18 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/bibio/arth.F90
r1907 r2228 7 7 INTERFACE arth 8 8 ! 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"). 10 10 11 11 MODULE PROCEDURE arth_r, arth_i 12 ! The difference between the procedures is the type of13 ! 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. 14 14 END INTERFACE 15 15 … … 22 22 REAL, INTENT(IN) :: first,increment 23 23 INTEGER, INTENT(IN) :: n 24 REAL , DIMENSION(n) :: arth_r24 REAL arth_r(n) 25 25 26 ! Variables local to the procedure: 27 26 ! Local: 28 27 INTEGER :: k,k2 29 28 REAL :: temp … … 50 49 end do 51 50 end if 51 52 52 END FUNCTION arth_r 53 53 … … 57 57 58 58 INTEGER, INTENT(IN) :: first,increment,n 59 INTEGER, DIMENSION(n) :: arth_i 59 INTEGER arth_i(n) 60 61 ! Local: 60 62 INTEGER :: k,k2,temp 63 64 !--------------------------------------- 65 61 66 if (n > 0) arth_i(1)=first 62 67 if (n <= NPAR_ARTH) then … … 78 83 end do 79 84 end if 85 80 86 END FUNCTION arth_i 81 87
Note: See TracChangeset
for help on using the changeset viewer.