Constructor for the index_array type
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | length | 
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=dp), | public, | allocatable | :: | part(:,:) | 
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | public | :: | ng | Number of cells in a given direction of the grid  | 
  
|||
| integer, | public | :: | p_ind(2) | Minimum and maximum cell number of the grid  | 
  
|||
| real(kind=dp), | public | :: | gmin | Value of the corresponding axis at the minimum cell  | 
  
|||
| real(kind=dp), | public | :: | gmax | Value of the corresponding axis at the maximum cell  | 
  
|||
| integer, | public | :: | min_cell | Initial cell of the grid in absolute units (i.e. respect to the total grid)  | 
  
|||
| integer, | public | :: | max_cell | Final cell of the grid in absolute units (i.e. respect to the total grid)  | 
  
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | public | :: | sind(2) | Initial and final stretched cell (sind(1) also coincides with the number of stretched cells)  | 
  
|||
| real(kind=dp), | public | :: | smin | Axis value on the boundary between stretched and unstretched grid (left side of the box)  | 
  
|||
| real(kind=dp), | public | :: | smax | Axis value on the boundary between stretched and unstretched grid (right side of the box)  | 
  
Type defining an array of consecutive integer numbers, useful as indices in arrays.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | public, | allocatable | :: | indices(:) | 
| public function new_index_array(length) | Constructor for the index_array type  | 
| procedure, public :: find_index | 
Constructor for the index_array type
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | length | 
Type bound procedure that finds and pack all the array indices according to the given mask
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(index_array), | intent(inout) | :: | index_in | |||
| logical, | intent(in) | :: | mask(:) |