Changeset 13369 for utils/tools/SIREN/src/kind.f90
- Timestamp:
- 2020-07-31T10:50:52+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
utils/tools/SIREN/src/kind.f90
r12080 r13369 5 5 ! DESCRIPTION: 6 6 !> This module defines the F90 kind parameter for common data types. 7 !> 7 !> 8 8 !> 9 9 !> @author … … 25 25 26 26 ! !!** Floating point ** 27 ! SELECTED_REAL_KIND(P,R) returns the kind value of a real data type 27 ! SELECTED_REAL_KIND(P,R) returns the kind value of a real data type 28 28 ! with decimal precision of at least P digits, exponent range of at least R 29 29 INTEGER, PUBLIC, PARAMETER :: sp = SELECTED_REAL_KIND( 6, 37) !< single precision (real 4) … … 32 32 33 33 ! !!** Integer ** 34 ! SELECTED_INT_KIND(R) return the kind value of the smallest integer type 34 ! SELECTED_INT_KIND(R) return the kind value of the smallest integer type 35 35 ! that can represent all values ranging ] -10^R , 10^R [ 36 INTEGER, PUBLIC, PARAMETER :: i1 = SELECTED_INT_KIND( 1) !< single precision (integer 1) 37 INTEGER, PUBLIC, PARAMETER :: i2 = SELECTED_INT_KIND( 4) !< single precision (integer 2) 38 INTEGER, PUBLIC, PARAMETER :: i4 = SELECTED_INT_KIND( 9) !< single precision (integer 4) 36 INTEGER, PUBLIC, PARAMETER :: i1 = SELECTED_INT_KIND( 1) !< single precision (integer 1) 37 INTEGER, PUBLIC, PARAMETER :: i2 = SELECTED_INT_KIND( 4) !< single precision (integer 2) 38 INTEGER, PUBLIC, PARAMETER :: i4 = SELECTED_INT_KIND( 9) !< single precision (integer 4) 39 39 INTEGER, PUBLIC, PARAMETER :: i8 = SELECTED_INT_KIND(14) !< double precision (integer 8) 40 40 41 41 ! !!** Integer ** 42 42 INTEGER, PUBLIC, PARAMETER :: lc = 256 !< Length of Character strings
Note: See TracChangeset
for help on using the changeset viewer.