MONC
datadefn.F90
Go to the documentation of this file.
1 
3  use mpi
4  implicit none
5 
6 #ifndef TEST_MODE
7  private
8 #endif
9 
10  integer, public, parameter :: string_length=150
11  integer, public, parameter :: long_string_length=string_length + 50
12 
13  integer, public, parameter :: single_precision = selected_real_kind(6,30)
14  integer, public, parameter :: double_precision = selected_real_kind(15,307)
15 
16 
17  integer, public, parameter :: default_precision = double_precision
18 
19  integer, public :: precision_type
20 
21  public init_data_defn
22 
23 contains
24 
26  subroutine init_data_defn()
27  if (default_precision .eq. double_precision) then
28  precision_type = mpi_double_precision
29  else
30  precision_type = mpi_real
31  endif
32  end subroutine init_data_defn
33 end module datadefn_mod
datadefn_mod::init_data_defn
subroutine, public init_data_defn()
Will initialise the data definitions. This should be called as soon as MONC starts up.
Definition: datadefn.F90:27
datadefn_mod::precision_type
integer, public precision_type
Definition: datadefn.F90:19
datadefn_mod::long_string_length
integer, parameter, public long_string_length
Length of longer strings.
Definition: datadefn.F90:11
datadefn_mod::single_precision
integer, parameter, public single_precision
Single precision (32 bit) kind.
Definition: datadefn.F90:13
datadefn_mod::double_precision
integer, parameter, public double_precision
Double precision (64 bit) kind.
Definition: datadefn.F90:14
datadefn_mod
Contains common definitions for the data and datatypes used by MONC.
Definition: datadefn.F90:2
datadefn_mod::string_length
integer, parameter, public string_length
Default length of strings.
Definition: datadefn.F90:10
datadefn_mod::default_precision
integer, parameter, public default_precision
MPI communication type which we use for the prognostic and calculation data.
Definition: datadefn.F90:17