The lookup table type. There can be one or more columns, for which values can be looked up for a given 'x-coordinate'.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=dp), | public, | allocatable | :: | cols_rows(:,:) |
The table in column-major order |
||
| real(kind=dp), | public | :: | dx |
The x-spacing in the lookup coordinate |
|||
| real(kind=dp), | public | :: | inv_dx |
The inverse x-spacing |
|||
| integer, | public | :: | n_cols |
The number of columns |
|||
| integer, | public | :: | n_points |
The number of points |
|||
| real(kind=dp), | public, | allocatable | :: | rows_cols(:,:) |
The table in row-major order |
||
| real(kind=dp), | public | :: | x_min |
The minimum lookup coordinate |
type LT_t integer :: n_points !< The number of points integer :: n_cols !< The number of columns real(dp) :: x_min !< The minimum lookup coordinate real(dp) :: dx !< The x-spacing in the lookup coordinate real(dp) :: inv_dx !< The inverse x-spacing ! The table is stored in two ways, to speed up different types of lookups. real(dp), allocatable :: cols_rows(:, :) !< The table in column-major order real(dp), allocatable :: rows_cols(:, :) !< The table in row-major order end type LT_t