var_info_type Derived Type

type, private :: var_info_type

This derived type conveys information similar to the var and var_array elements in MPAS registry. For example, in MPAS registry, the "xCell" variable is described as:

<var name="xCell" type="real" dimensions="nCells" units="m" description="Cartesian x-coordinate of cells" />

Here, it is described as:

var_info_type(name="xCell", type="real", rank=1)

However, note that MPAS treats the "Time" dimension specially. It is implemented as 1-d pointer arrays of custom derived types. For a variable with the "Time" dimension, its rank needs to be subtracted by one.


Components

Type Visibility Attributes Name Initial
character(len=64), private :: name = ''
integer, private :: rank = 0
character(len=10), private :: type = ''

Source Code

    type :: var_info_type
        private

        character(64) :: name = ''
        character(10) :: type = ''
        integer :: rank = 0
    end type var_info_type