Go to the documentation of this file.
4 use fruit,
only : assert_equals, assert_not_equals, assert_true
14 call assert_equals(1,
z_index,
"Z_INDEX is 1")
15 call assert_equals(2,
y_index,
"Y_INDEX is 2")
16 call assert_equals(3,
x_index,
"X_INDEX is 3")
21 call assert_equals(1,
primal_grid,
"PRIMAL_GRID is 1")
22 call assert_equals(2,
dual_grid,
"DUAL_GRID is 2")
28 logical,
dimension(3) :: expected = (/ .true., .true., .true. /)
31 call assert_not_equals(expected(i), global_grid%active(i), &
32 "Test the status of the dimensions after creating a global_grid_type object")
39 logical,
dimension(3) :: expected = (/ .true., .true., .true. /)
42 call assert_not_equals(expected(i), local_grid%active(i), &
43 "Test the status of the dimensions after creating a local_grid_type object")
53 use fruit,
only : init_fruit, run_test_case, fruit_summary
60 call run_test_case(
test_xyz_index,
"Test expected XYZ index values")
integer, parameter, public dual_grid
integer, parameter, public x_index
integer, parameter, public y_index
subroutine test_type_parameters
integer, parameter, public z_index
Grid index parameters.
integer, parameter, public primal_grid
Grid type parameters (usually applied to each dimension of a prognostic)
Defined the local grid, i.e. the grid held on this process after decomposition.
subroutine test_local_active_dimensions
Contains common definitions for the data and datatypes used by MONC.
subroutine test_global_active_dimensions
Functionality to support the different types of grid and abstraction between global grids and local o...
subroutine test_xyz_index
integer, parameter, public default_precision
MPI communication type which we use for the prognostic and calculation data.