MONC
Functions/Subroutines | Variables
datadefn_mod Module Reference

Contains common definitions for the data and datatypes used by MONC. More...

Functions/Subroutines

subroutine, public init_data_defn ()
 Will initialise the data definitions. This should be called as soon as MONC starts up. More...
 

Variables

integer, parameter, public string_length =150
 Default length of strings. More...
 
integer, parameter, public long_string_length =STRING_LENGTH + 50
 Length of longer strings. More...
 
integer, parameter, public single_precision = selected_real_kind(6, 30)
 Single precision (32 bit) kind. More...
 
integer, parameter, public double_precision = selected_real_kind(15, 307)
 Double precision (64 bit) kind. More...
 
integer, parameter, public default_precision = DOUBLE_PRECISION
 MPI communication type which we use for the prognostic and calculation data. More...
 
integer, public precision_type
 

Detailed Description

Contains common definitions for the data and datatypes used by MONC.

Function/Subroutine Documentation

◆ init_data_defn()

subroutine, public datadefn_mod::init_data_defn ( )

Will initialise the data definitions. This should be called as soon as MONC starts up.

Definition at line 27 of file datadefn.F90.

27  if (default_precision .eq. double_precision) then
28  precision_type = mpi_double_precision
29  else
30  precision_type = mpi_real
31  endif
Here is the caller graph for this function:

Variable Documentation

◆ default_precision

integer, parameter, public datadefn_mod::default_precision = DOUBLE_PRECISION

MPI communication type which we use for the prognostic and calculation data.

Definition at line 17 of file datadefn.F90.

17  integer, public, parameter :: default_precision = double_precision

◆ double_precision

integer, parameter, public datadefn_mod::double_precision = selected_real_kind(15, 307)

Double precision (64 bit) kind.

Default precision which is used for prognostic data and calculations

Definition at line 14 of file datadefn.F90.

14  integer, public, parameter :: double_precision = selected_real_kind(15,307)

◆ long_string_length

integer, parameter, public datadefn_mod::long_string_length =STRING_LENGTH + 50

Length of longer strings.

Definition at line 11 of file datadefn.F90.

11  integer, public, parameter :: long_string_length=string_length + 50

◆ precision_type

integer, public datadefn_mod::precision_type

Definition at line 19 of file datadefn.F90.

19  integer, public :: precision_type

◆ single_precision

integer, parameter, public datadefn_mod::single_precision = selected_real_kind(6, 30)

Single precision (32 bit) kind.

Definition at line 13 of file datadefn.F90.

13  integer, public, parameter :: single_precision = selected_real_kind(6,30)

◆ string_length

integer, parameter, public datadefn_mod::string_length =150

Default length of strings.

Definition at line 10 of file datadefn.F90.

10  integer, public, parameter :: string_length=150