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