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")
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")
subroutine test_xyz_index
integer, parameter, public dual_grid
integer, parameter, public default_precision
MPI communication type which we use for the prognostic and calculation data.
integer, parameter, public z_index
Grid index parameters.
Contains common definitions for the data and datatypes used by MONC.
subroutine test_global_active_dimensions
Defined the local grid, i.e. the grid held on this process after decomposition.
integer, parameter, public primal_grid
Grid type parameters (usually applied to each dimension of a prognostic)
Functionality to support the different types of grid and abstraction between global grids and local o...
subroutine test_type_parameters
subroutine test_local_active_dimensions
integer, parameter, public y_index
integer, parameter, public x_index