MOM_hor_index module reference
Defines the horizontal index type (hor_index_type) used for providing index ranges
Data Types
Container for horizontal index ranges for data, computational and global domains |
Generic Interfaces
Copy the contents of one horizontal index type into another |
Functions/Subroutines
Sets various index values in a hor_index_type. |
|
HIT_assign copies one hor_index_type into another. It is accessed via an assignment (=) operator. |
|
Rotate the horizontal index ranges from the input to the output map. |
Detailed Description
The hor_index_type provides the declarations and loop ranges for almost all data with horizontal extent.
Declarations and loop ranges should always be coded with the symmetric memory model in mind. The non-symmetric memory mode will then also work, albeit with a different (less efficient) communication pattern.
Using the hor_index_type HI:
declaration of h-point data is of the form h(HI%%isd:HI%%ied,HI%%jsd:HI%%jed)
declaration of q-point data is of the form q(HI%%IsdB:HI%%IedB,HI%%JsdB:HI%%JedB)
declaration of u-point data is of the form u(HI%%IsdB:HI%%IedB,HI%%jsd:HI%%jed)
declaration of v-point data is of the form v(HI%%isd:HI%%ied,HI%%JsdB:HI%%JedB).
For more detail explanation of horizontal indexing see Horizontal indexing and memory.
Type Documentation
- type, public :: hor_index_type
Container for horizontal index ranges for data, computational and global domains
- Parameters
isc
The start i-index of cell centers within the computational domain
iec
The end i-index of cell centers within the computational domain
jsc
The start j-index of cell centers within the computational domain
jec
The end j-index of cell centers within the computational domain
isd
The start i-index of cell centers within the data domain
ied
The end i-index of cell centers within the data domain
jsd
The start j-index of cell centers within the data domain
jed
The end j-index of cell centers within the data domain
isg
The start i-index of cell centers within the global domain
ieg
The end i-index of cell centers within the global domain
jsg
The start j-index of cell centers within the global domain
jeg
The end j-index of cell centers within the global domain
IscB
The start i-index of cell vertices within the computational domain
IecB
The end i-index of cell vertices within the computational domain
JscB
The start j-index of cell vertices within the computational domain
JecB
The end j-index of cell vertices within the computational domain
IsdB
The start i-index of cell vertices within the data domain
IedB
The end i-index of cell vertices within the data domain
JsdB
The start j-index of cell vertices within the data domain
JedB
The end j-index of cell vertices within the data domain
IsgB
The start i-index of cell vertices within the global domain
IegB
The end i-index of cell vertices within the global domain
JsgB
The start j-index of cell vertices within the global domain
JegB
The end j-index of cell vertices within the global domain
idg_offset
The offset between the corresponding global and local i-indices.
jdg_offset
The offset between the corresponding global and local j-indices.
symmetric
True if symmetric memory is used.
niglobal
The global number of h-cells in the i-direction
njglobal
The global number of h-cells in the j-direction
turns
Number of quarter-turn rotations from input to model
Generic Interface Documentation
- interface assignment(=)
Copy the contents of one horizontal index type into another
Functions/Subroutine Documentation
- subroutine hor_index_init(Domain, HI, param_file, local_indexing, index_offset)
Sets various index values in a hor_index_type.
- Parameters
Domain [in]
The MOM domain from which to extract information.
HI [inout]
A horizontal index type to populate with data
param_file [in]
Parameter file handle
local_indexing [in]
If true, all tracer data domains start at 1
index_offset [in]
A fixed additional offset to all indices
Callees call graph
- subroutine HIT_assign(HI1, HI2)
HIT_assign copies one hor_index_type into another. It is accessed via an assignment (=) operator.
- Parameters
HI1 [out]
Horizontal index type to copy to
HI2 [in]
Horizontal index type to copy from
- subroutine rotate_hor_index(HI_in, turns, HI)
Rotate the horizontal index ranges from the input to the output map.
- Parameters
HI_in [in]
Unrotated horizontal indices
turns [in]
Number of quarter turns
HI [inout]
Rotated horizontal indices
Callers call graph
Text view
mom_checksums::chksum_b_2d → mom_hor_index::rotate_hor_index
mom_checksums::chksum_b_3d → mom_hor_index::rotate_hor_index
mom_checksums::chksum_h_2d → mom_hor_index::rotate_hor_index
mom_checksums::chksum_h_3d → mom_hor_index::rotate_hor_index
mom_checksums::chksum_pair_b_2d → mom_hor_index::rotate_hor_index
mom_checksums::chksum_pair_b_3d → mom_hor_index::rotate_hor_index
mom_checksums::chksum_pair_h_2d → mom_hor_index::rotate_hor_index
mom_checksums::chksum_pair_h_3d → mom_hor_index::rotate_hor_index
mom_checksums::chksum_u_2d → mom_hor_index::rotate_hor_index
mom_checksums::chksum_u_3d → mom_hor_index::rotate_hor_index
mom_checksums::chksum_uv_2d → mom_hor_index::rotate_hor_index
mom_checksums::chksum_uv_3d → mom_hor_index::rotate_hor_index
mom_checksums::chksum_v_2d → mom_hor_index::rotate_hor_index
mom_checksums::chksum_v_3d → mom_hor_index::rotate_hor_index
mom_ice_shelf::initialize_ice_shelf → mom_hor_index::rotate_hor_index