MONC
test_communicationtypes.F90
Go to the documentation of this file.
1 ! Unit tests for the options database functionality
5  use fruit, only : assert_equals, assert_true, assert_false
6  implicit none
7 
8  contains
9 
10  ! Test intializated values
12  type(neighbour_description_type) :: neighbour
13 
14  call assert_equals(0, neighbour%halo_pages, "Test halo_pages")
15  call assert_equals(0, neighbour%halo_corners, "Test halo_pages")
16  end subroutine test_halo_default_size
17 
19  type(halo_communication_type) :: halocomm
20 
21  call assert_false(halocomm%initialised, "Test initialised")
22  call assert_false(halocomm%involve_corners, "Test involve_corners")
23  call assert_false(halocomm%swap_in_progress, "Test swap_in_progress")
25 
27 
29  use fruit, only : init_fruit, run_test_case, fruit_summary
32 
33  implicit none
34 
35  call init_fruit
36  call run_test_case(test_halo_default_size, "Test initial halo values")
37  call run_test_case(test_halo_communication_default_values, "Test ")
38  call fruit_summary
communication_types_mod::neighbour_description_type
Describes the neighbours of a process in a specific dimension and contains the communication buffers ...
Definition: communicationtypes.F90:20
test_communication_types_mod::test_halo_default_size
subroutine test_halo_default_size
Definition: test_communicationtypes.F90:12
communication_types_mod
Contains the types used for communication, holding the state of communications and supporting activit...
Definition: communicationtypes.F90:5
test_communication_types_mod::test_halo_communication_default_values
subroutine test_halo_communication_default_values
Definition: test_communicationtypes.F90:19
communication_types_mod::halo_communication_type
Maintains the state of a halo swap and contains buffers, neighbours etc.
Definition: communicationtypes.F90:28
communication_types_mod::field_data_wrapper_type
Definition: communicationtypes.F90:14
test_communication_types_mod
Definition: test_communicationtypes.F90:2
test_communication_types_driver
program test_communication_types_driver
Definition: test_communicationtypes.F90:28