FMS  2025.04
Flexible Modeling System
platform.F90
1 !***********************************************************************
2 !* Apache License 2.0
3 !*
4 !* This file is part of the GFDL Flexible Modeling System (FMS).
5 !*
6 !* Licensed under the Apache License, Version 2.0 (the "License");
7 !* you may not use this file except in compliance with the License.
8 !* You may obtain a copy of the License at
9 !*
10 !* http://www.apache.org/licenses/LICENSE-2.0
11 !*
12 !* FMS is distributed in the hope that it will be useful, but WITHOUT
13 !* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied;
14 !* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
15 !* PARTICULAR PURPOSE. See the License for the specific language
16 !* governing permissions and limitations under the License.
17 !***********************************************************************
18 !> @defgroup platform_mod platform_mod
19 !> @ingroup platform
20 !> @brief Uses @ref fms_platform.h to define byte sizes for variable kinds
21 !! to be used in fms.
22 
23 !> @addtogroup platform_mod
24 !> @{
25 module platform_mod
26 !platform-dependent settings
27 #include <fms_platform.h>
28  public
29  integer, parameter :: r16_kind=quad_kind, r8_kind=double_kind, r4_kind=float_kind, &
30  c8_kind=double_kind, c4_kind=float_kind, &
31  l8_kind=long_kind, l4_kind=int_kind, &
32  i8_kind=long_kind, i4_kind=int_kind, i2_kind=short_kind, &
33  ptr_kind=pointer_kind
34  integer, parameter :: FMS_PATH_LEN = fms_max_path_len
35  integer, parameter :: FMS_FILE_LEN = fms_max_file_len
36 !could additionally define things like OS, compiler...: useful?
37 end module platform_mod
38 !> @}
39 ! close documentation grouping