SABER
tools_kinds.F90
Go to the documentation of this file.
1 !----------------------------------------------------------------------
2 ! Module: tools_kinds
3 !> Kinds definition
4 ! Author: Benjamin Menetrier
5 ! Licensing: this code is distributed under the CeCILL-C license
6 ! Copyright © 2015-... UCAR, CERFACS, METEO-FRANCE and IRIT
7 !----------------------------------------------------------------------
8 module tools_kinds
9 
10 use iso_c_binding
11 use netcdf, only: nf90_double
12 
13 implicit none
14 
15 ! Kinds
16 integer,parameter :: kind_int = c_int ! Integer kind
17 integer,parameter :: kind_short = c_short ! Short integer kind
18 integer,parameter :: kind_real = c_double ! Real kind
19 
20 ! NetCDF kinds
21 integer,parameter :: nc_kind_real = nf90_double ! NetCDF real kind
22 
23 ! Huge
24 integer,parameter :: huge_int = huge(0_kind_int) ! Integer huge
25 real(kind_real),parameter :: huge_real = huge(0.0_kind_real) ! Real huge
26 
27 private
29 
30 end module tools_kinds
tools_kinds::kind_short
integer, parameter, public kind_short
Definition: tools_kinds.F90:17
tools_kinds::huge_int
integer, parameter, public huge_int
Definition: tools_kinds.F90:24
tools_kinds::nc_kind_real
integer, parameter, public nc_kind_real
Definition: tools_kinds.F90:21
tools_kinds::huge_real
real(kind_real), parameter, public huge_real
Definition: tools_kinds.F90:25
tools_kinds
Kinds definition.
Definition: tools_kinds.F90:8
tools_kinds::kind_real
integer, parameter, public kind_real
Definition: tools_kinds.F90:18
tools_kinds::kind_int
integer, parameter, public kind_int
Definition: tools_kinds.F90:16