Report Typos and Errors    
Semi-Lagrangian Library
Modular library for kinetic and gyrokinetic simulations of plasmas in fusion energy devices.
sll_m_working_precision.F90
Go to the documentation of this file.
1 !**************************************************************
2 ! Copyright INRIA
3 ! Authors :
4 ! CALVI project team
5 !
6 ! This code SeLaLib (for Semi-Lagrangian-Library)
7 ! is a parallel library for simulating the plasma turbulence
8 ! in a tokamak.
9 !
10 ! This software is governed by the CeCILL-B license
11 ! under French law and abiding by the rules of distribution
12 ! of free software. You can use, modify and redistribute
13 ! the software under the terms of the CeCILL-B license as
14 ! circulated by CEA, CNRS and INRIA at the following URL
15 ! "http://www.cecill.info".
16 !**************************************************************
17 
18 ! From the Fortran Standard (2.4.1.1): "The kind type parameter indicates the
19 ! decimal exponent range for the integer type (4.4.1), the decimal precision
20 ! and exponent range for the real and complex types (4.4.2, 4.4.3), and the
21 ! representation methods for the character and logical types (4.4.4, 4.4.5)."
22 
30 
31 !+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
32  implicit none
33 
34  public :: &
35  f32, &
36  f64, &
37  i32, &
38  i64
39 
40  private
41 !+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
42 
43  ! The intent is that i32 will hold values up to 2**32-1
45 ! integer, parameter :: i32 = kind(0)
46  integer, parameter :: i32 = selected_int_kind(9)
48 ! integer, parameter :: i64 = kind(2_8**32) !i64=kind(1.0d0) should be specific enough
49  integer, parameter :: i64 = selected_int_kind(18)
51  integer, parameter :: f32 = selected_real_kind(1, 37)
53  integer, parameter :: f64 = selected_real_kind(1, 99)
54 
55 end module sll_m_working_precision
Module to select the kind parameter.
integer, parameter, public i32
i32 is the kind type for 32-bit integers
integer, parameter, public i64
i64 is the kind type for 64-bit integers
integer, parameter, public f32
f32 is the kind type for 32-bit reals (simple precision)
integer, parameter, public f64
f64 is the kind type for 64-bit reals (double precision)
    Report Typos and Errors