libsim Versione 7.1.11
|
◆ ptr_c
kind for an integer having the same size of a C pointer Definizione alla linea 272 del file kinds.F90. 272! Copyright (C) 2010 ARPA-SIM <urpsim@smr.arpa.emr.it>
273! authors:
274! Davide Cesari <dcesari@arpa.emr.it>
275! Paolo Patruno <ppatruno@arpa.emr.it>
276
277! This program is free software; you can redistribute it and/or
278! modify it under the terms of the GNU General Public License as
279! published by the Free Software Foundation; either version 2 of
280! the License, or (at your option) any later version.
281
282! This program is distributed in the hope that it will be useful,
283! but WITHOUT ANY WARRANTY; without even the implied warranty of
284! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
285! GNU General Public License for more details.
286
287! You should have received a copy of the GNU General Public License
288! along with this program. If not, see <http://www.gnu.org/licenses/>.
289#include "config.h"
290
300
329IMPLICIT NONE
330
331INTEGER, PARAMETER :: int_b = selected_int_kind(1)
332INTEGER, PARAMETER :: int_s = selected_int_kind(4)
333INTEGER, PARAMETER :: int_l = selected_int_kind(8)
334INTEGER, PARAMETER, PRIVATE :: &
335 int_ll_t = selected_int_kind(16)
337INTEGER, PARAMETER :: int_ll = &
338 ( ( ( 1 + sign( 1, int_ll_t ) ) / 2 ) * int_ll_t ) + &
339 ( ( ( 1 - sign( 1, int_ll_t ) ) / 2 ) * int_l )
340
341INTEGER, PARAMETER :: fp_s = selected_real_kind(6)
342INTEGER, PARAMETER :: fp_d = selected_real_kind(15)
343INTEGER, PARAMETER, PRIVATE :: fp_q_t = selected_real_kind(20)
345INTEGER, PARAMETER :: fp_q = &
346 ( ( ( 1 + sign( 1, fp_q_t ) ) / 2 ) * fp_q_t ) + &
347 ( ( ( 1 - sign( 1, fp_q_t ) ) / 2 ) * fp_d )
348
349INTEGER, PARAMETER :: ptr_c = sizeof_ptr_c
350
Definition of constants to be used for declaring variables of a desired type. Definition: kinds.F90:251 |