FMS  2024.03
Flexible Modeling System
platform.F90
1 !***********************************************************************
2 !* GNU Lesser General Public License
3 !*
4 !* This file is part of the GFDL Flexible Modeling System (FMS).
5 !*
6 !* FMS is free software: you can redistribute it and/or modify it under
7 !* the terms of the GNU Lesser General Public License as published by
8 !* the Free Software Foundation, either version 3 of the License, or (at
9 !* your option) any later version.
10 !*
11 !* FMS is distributed in the hope that it will be useful, but WITHOUT
12 !* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 !* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 !* for more details.
15 !*
16 !* You should have received a copy of the GNU Lesser General Public
17 !* License along with FMS. If not, see <http://www.gnu.org/licenses/>.
18 !***********************************************************************
19 !> @defgroup platform_mod platform_mod
20 !> @ingroup platform
21 !> @brief Uses @ref fms_platform.h to define byte sizes for variable kinds
22 !! to be used in fms.
23 
24 !> @addtogroup platform_mod
25 !> @{
26 module platform_mod
27 !platform-dependent settings
28 #include <fms_platform.h>
29  public
30  integer, parameter :: r16_kind=quad_kind, r8_kind=double_kind, r4_kind=float_kind, &
31  c8_kind=double_kind, c4_kind=float_kind, &
32  l8_kind=long_kind, l4_kind=int_kind, &
33  i8_kind=long_kind, i4_kind=int_kind, i2_kind=short_kind, &
34  ptr_kind=pointer_kind
35  integer, parameter :: FMS_PATH_LEN = fms_max_path_len
36  integer, parameter :: FMS_FILE_LEN = fms_max_file_len
37 !could additionally define things like OS, compiler...: useful?
38 end module platform_mod
39 !> @}
40 ! close documentation grouping