MONC
Data Types | Functions/Subroutines
prognostics_mod Module Reference

Contains prognostic field definitions and functions. More...

Data Types

type  prognostic_field_ptr_type
 A pointer to the prognostic field. This is so we can wrap prognostics up in an array and still refer to the origonal field rather than a copy. More...
 
type  prognostic_field_type
 A prognostic field which is assumed to be 3D. More...
 

Functions/Subroutines

logical function, dimension(3), public get_field_interpolation_index (field)
 Retrieves the index(s) that require interpolation to go from the primal the dual grid. More...
 

Detailed Description

Contains prognostic field definitions and functions.

Function/Subroutine Documentation

◆ get_field_interpolation_index()

logical function, dimension(3), public prognostics_mod::get_field_interpolation_index ( type(prognostic_field_type), intent(inout)  field)

Retrieves the index(s) that require interpolation to go from the primal the dual grid.

Parameters
fieldThe field to check interpolation for

Definition at line 33 of file prognostics.F90.

34  type(prognostic_field_type), intent(inout) :: field
35  logical, dimension(3) :: get_field_interpolation_index
36 
37  integer :: i
38  do i=1,3
39  get_field_interpolation_index(i) = merge(.true., .false., field%grid(i) == primal_grid)
40  end do
Here is the caller graph for this function: