libsim  Versione 7.1.9
kinds.F90
1 ! Copyright (C) 2010 ARPA-SIM <urpsim@smr.arpa.emr.it>
2 ! authors:
3 ! Davide Cesari <dcesari@arpa.emr.it>
4 ! Paolo Patruno <ppatruno@arpa.emr.it>
5 
6 ! This program is free software; you can redistribute it and/or
7 ! modify it under the terms of the GNU General Public License as
8 ! published by the Free Software Foundation; either version 2 of
9 ! the License, or (at your option) any later version.
10 
11 ! This program is distributed in the hope that it will be useful,
12 ! but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ! GNU General Public License for more details.
15 
16 ! You should have received a copy of the GNU General Public License
17 ! along with this program. If not, see <http://www.gnu.org/licenses/>.
18 #include "config.h"
19 
29 
57 MODULE kinds
58 IMPLICIT NONE
59 
60 INTEGER, PARAMETER :: int_b = selected_int_kind(1)
61 INTEGER, PARAMETER :: int_s = selected_int_kind(4)
62 INTEGER, PARAMETER :: int_l = selected_int_kind(8)
63 INTEGER, PARAMETER, PRIVATE :: &
64  int_ll_t = selected_int_kind(16)
66 INTEGER, PARAMETER :: int_ll = &
67  ( ( ( 1 + sign( 1, int_ll_t ) ) / 2 ) * int_ll_t ) + &
68  ( ( ( 1 - sign( 1, int_ll_t ) ) / 2 ) * int_l )
69 
70 INTEGER, PARAMETER :: fp_s = selected_real_kind(6)
71 INTEGER, PARAMETER :: fp_d = selected_real_kind(15)
72 INTEGER, PARAMETER, PRIVATE :: fp_q_t = selected_real_kind(20)
74 INTEGER, PARAMETER :: fp_q = &
75  ( ( ( 1 + sign( 1, fp_q_t ) ) / 2 ) * fp_q_t ) + &
76  ( ( ( 1 - sign( 1, fp_q_t ) ) / 2 ) * fp_d )
77 
78 INTEGER, PARAMETER :: ptr_c = sizeof_ptr_c
79 
80 END MODULE kinds
Definition of constants to be used for declaring variables of a desired type.
Definition: kinds.F90:251

Generated with Doxygen.