MONC
Functions/Subroutines
test_prognostic_mod Module Reference

Functions/Subroutines

subroutine test_async_flux_value
 
subroutine test_get_field_interpolation_index
 

Function/Subroutine Documentation

◆ test_async_flux_value()

subroutine test_prognostic_mod::test_async_flux_value

Definition at line 14 of file test_prognostics.F90.

15  type(prognostic_field_type) :: field
16  call assert_equals(mpi_request_null, field%async_flux_handle , "Test async_flux_handle")
Here is the caller graph for this function:

◆ test_get_field_interpolation_index()

subroutine test_prognostic_mod::test_get_field_interpolation_index

Definition at line 21 of file test_prognostics.F90.

22  type(prognostic_field_type) :: field
23  logical, dimension(3) :: get_field_index
24  integer :: i
25  get_field_index = get_field_interpolation_index(field)
26  do i=1,3
27  call assert_equals(.false., get_field_index(i) , "Test interpolation index is false")
28  enddo
29 
30  field%grid(1) = primal_grid
31  get_field_index = get_field_interpolation_index(field)
32  do i=1,3
33  if (i == 1) then
34  call assert_equals(.true., get_field_index(i) , " Should be true")
35  else
36  call assert_equals(.false., get_field_index(i) , "Should be false")
37  endif
38  enddo
39 
40  field%grid(1) = 10
41  field%grid(2) = 20
42  field%grid(3) = 30
43  get_field_index = get_field_interpolation_index(field)
44  do i=1,3
45  call assert_equals(.false., get_field_index(i) , "Should be false")
46  enddo
47 
Here is the call graph for this function:
Here is the caller graph for this function: