MONC
test_scienceconstants.F90
Go to the documentation of this file.
1 ! Tests the logging_mod utility functions
3  use fruit, only : assert_equals, assert_not_equals, assert_true
10 
11  use state_mod, only : model_state_type
12  implicit none
13 
14 contains
15 
16  ! Test constants
18 
19  type(model_state_type) :: state
20  call load_model_configuration(state%options_database)
22 
23 
24  call assert_equals(rlvap_over_cp,rlvap/cp, "Test rlvap_over is what is expected")
25  call assert_equals(r_over_cp,r/cp, "Test rlvap_over is what is expected")
26  end subroutine test_science_constants
27 
28 
30 
31 
32 
33  ! Driver for maths_mod utility tests
35  use fruit, only : init_fruit, run_test_case, fruit_summary
37 
38  implicit none
39 
40  call init_fruit
41  call run_test_case(test_science_constants, "Test the initialization of science constants")
42  call fruit_summary
science_constants_mod::surface_vapour_mixing_ratio
real(kind=default_precision) surface_vapour_mixing_ratio
Definition: scienceconstants.F90:13
science_constants_mod::rlargep
real(kind=default_precision), public rlargep
Definition: scienceconstants.F90:13
science_constants_mod::r_over_cp
real(kind=default_precision), public r_over_cp
Definition: scienceconstants.F90:13
science_constants_mod::gammam
real(kind=default_precision), public gammam
Definition: scienceconstants.F90:13
science_constants_mod::cp
real(kind=default_precision), public cp
Definition: scienceconstants.F90:13
test_science_constants_mod
Definition: test_scienceconstants.F90:2
science_constants_mod::rlvap
real(kind=default_precision), public rlvap
Definition: scienceconstants.F90:13
test_science_constants_mod::test_science_constants
subroutine test_science_constants
Definition: test_scienceconstants.F90:18
science_constants_mod::seconds_in_a_day
real(kind=default_precision), public seconds_in_a_day
Definition: scienceconstants.F90:17
science_constants_mod::initialise_science_constants
subroutine, public initialise_science_constants(current_state)
Initialises the scientific constants to read in any values that are overridden in the configuration.
Definition: scienceconstants.F90:27
science_constants_mod
Scientific constant values used throughout simulations. Each has a default value and this can be over...
Definition: scienceconstants.F90:3
science_constants_mod::r
real(kind=default_precision), public r
Definition: scienceconstants.F90:13
science_constants_mod::smallp
real(kind=default_precision), public smallp
Definition: scienceconstants.F90:13
science_constants_mod::ratio_mol_wts
real(kind=default_precision), public ratio_mol_wts
Definition: scienceconstants.F90:13
state_mod::model_state_type
The ModelState which represents the current state of a run.
Definition: state.F90:39
science_constants_mod::betah
real(kind=default_precision), public betah
Definition: scienceconstants.F90:13
science_constants_mod::betam
real(kind=default_precision), public betam
Definition: scienceconstants.F90:13
science_constants_mod::convective_limit
real(kind=default_precision), public convective_limit
Definition: scienceconstants.F90:13
datadefn_mod
Contains common definitions for the data and datatypes used by MONC.
Definition: datadefn.F90:2
science_constants_mod::z0th
real(kind=default_precision), public z0th
Definition: scienceconstants.F90:13
monc_mod::load_model_configuration
subroutine load_model_configuration(state, options_database)
Loads the configuration into the options database, either from a file or checkpoint.
Definition: monc.F90:118
science_constants_mod::alphah
real(kind=default_precision), public alphah
Definition: scienceconstants.F90:13
science_constants_mod::z0
real(kind=default_precision), public z0
Definition: scienceconstants.F90:13
monc_mod
Main core entry point to the rest of the model, this is called by the program main.
Definition: monc.F90:2
test_science_constants_driver
program test_science_constants_driver
Definition: test_scienceconstants.F90:34
science_constants_mod::von_karman_constant
real(kind=default_precision), public von_karman_constant
Definition: scienceconstants.F90:13
science_constants_mod::pi
real(kind=default_precision), public pi
Definition: scienceconstants.F90:13
science_constants_mod::gammah
real(kind=default_precision), public gammah
Definition: scienceconstants.F90:13
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
state_mod
The model state which represents the current state of a run.
Definition: state.F90:2
science_constants_mod::rlvap_over_cp
real(kind=default_precision), public rlvap_over_cp
Definition: scienceconstants.F90:13
science_constants_mod::g
real(kind=default_precision), public g
Definition: scienceconstants.F90:13