DimensionSpec Derived Type

type, public :: DimensionSpec


Inherited by

type~~dimensionspec~~InheritedByGraph type~dimensionspec DimensionSpec type~gridspec GridSpec type~gridspec->type~dimensionspec dim_specs

Components

Type Visibility Attributes Name Initial
integer, public :: num_points
integer, public :: topology
real, public :: x_max
real, public :: x_min

Type-Bound Procedures

procedure, public :: equals_dim

  • private impure elemental function equals_dim(a, b) result(equals)

    Arguments

    Type IntentOptional Attributes Name
    class(DimensionSpec), intent(in) :: a
    class(DimensionSpec), intent(in) :: b

    Return Value logical

procedure, public :: not_equals_dim

  • private impure elemental function not_equals_dim(a, b) result(not_equals)

    Arguments

    Type IntentOptional Attributes Name
    class(DimensionSpec), intent(in) :: a
    class(DimensionSpec), intent(in) :: b

    Return Value logical

generic, public :: operator(/=) => not_equals_dim

  • private impure elemental function not_equals_dim(a, b) result(not_equals)

    Arguments

    Type IntentOptional Attributes Name
    class(DimensionSpec), intent(in) :: a
    class(DimensionSpec), intent(in) :: b

    Return Value logical

generic, public :: operator(==) => equals_dim

  • private impure elemental function equals_dim(a, b) result(equals)

    Arguments

    Type IntentOptional Attributes Name
    class(DimensionSpec), intent(in) :: a
    class(DimensionSpec), intent(in) :: b

    Return Value logical

Source Code

   type :: DimensionSpec
      integer :: num_points
      integer :: topology
      real :: x_min
      real :: x_max
   contains
      procedure :: equals_dim
      procedure :: not_equals_dim
      generic :: operator(==) => equals_dim
      generic :: operator(/=) => not_equals_dim
   end type DimensionSpec