tem_cube_type Derived Type

type, public :: tem_cube_type

An auxilary data type to describe a cube.

Here: The origin is the corner from which on the cube is spanned with the given length in each direction.


Components

Type Visibility Attributes Name Initial
real(kind=rk), public :: origin(3)
real(kind=rk), public :: center(3)
real(kind=rk), public :: extent
real(kind=rk), public :: halfwidth
real(kind=rk), public :: endPnt(3)

Source Code

  type tem_cube_type
    real(kind=rk) :: origin(3) !< origin of the cube
    real(kind=rk) :: center(3) !< center of the cube
    real(kind=rk) :: extent !< length of the cube
    real(kind=rk) :: halfwidth !< half length of the cube
    real(kind=rk) :: endPnt(3) !< End point of the cube
  end type tem_cube_type