UngriddedDimSpec Derived Type

type, public :: UngriddedDimSpec


Inherited by

type~~ungriddeddimspec~~InheritedByGraph type~ungriddeddimspec UngriddedDimSpec type~dimsspec~2 DimsSpec type~dimsspec~2->type~ungriddeddimspec ungridded_dim_specs type~fieldspec FieldSpec type~fieldspec->type~dimsspec~2 dims_spec type~mapl_varspectype MAPL_VarSpecType type~mapl_varspectype->type~fieldspec field_spec type~mapl_varspec MAPL_VarSpec type~mapl_varspec->type~mapl_varspectype SpecPtr type~varspecdescription VarspecDescription type~varspecdescription->type~mapl_varspectype

Constructor

public interface UngriddedDimSpec

  • private pure function new_UngriddedDimSpec_extent(extent) result(spec)

    Arguments

    Type IntentOptional Attributes Name
    integer, intent(in) :: extent

    Return Value type(UngriddedDimSpec)

  • private pure function new_UngriddedDimSpec_name_and_coords(name, coordinates) result(spec)

    Arguments

    Type IntentOptional Attributes Name
    character(len=*), intent(in) :: name
    real, intent(in) :: coordinates(:)

    Return Value type(UngriddedDimSpec)

  • private pure function new_UngriddedDimSpec_name_units_and_coords(name, units, coordinates) result(spec)

    Arguments

    Type IntentOptional Attributes Name
    character(len=*), intent(in) :: name
    character(len=*), intent(in) :: units
    real, intent(in) :: coordinates(:)

    Return Value type(UngriddedDimSpec)


Type-Bound Procedures

procedure, public :: get_coordinates

  • private pure function get_coordinates(this) result(coordinates)

    Arguments

    Type IntentOptional Attributes Name
    class(UngriddedDimSpec), intent(in) :: this

    Return Value real, allocatable, (:)

procedure, public :: get_extent

  • private pure function get_extent(this) result(extent)

    Arguments

    Type IntentOptional Attributes Name
    class(UngriddedDimSpec), intent(in) :: this

    Return Value integer

procedure, public :: get_name

  • private pure function get_name(this) result(name)

    Arguments

    Type IntentOptional Attributes Name
    class(UngriddedDimSpec), intent(in) :: this

    Return Value character(len=:), allocatable

procedure, public :: get_units

  • private pure function get_units(this) result(units)

    Arguments

    Type IntentOptional Attributes Name
    class(UngriddedDimSpec), intent(in) :: this

    Return Value character(len=:), allocatable

Source Code

   type :: UngriddedDimSpec
      private
      character(:), allocatable :: name
      character(:), allocatable :: units
      real, allocatable :: coordinates(:)
   contains
      procedure :: get_extent
      procedure :: get_name
      procedure :: get_units
      procedure :: get_coordinates
   end type UngriddedDimSpec