coord_zlike module reference
Regrid columns for a z-like coordinate (z-star, z-level)
Data Types
Control structure containing required parameters for a z-like coordinate |
Functions/Subroutines
Initialise a zlike_CS with pointers to parameters |
|
Deallocates the zlike control structure |
|
Set parameters in the zlike structure |
|
Builds a z* coordinate with a minimum thickness |
Type Documentation
- type, public :: zlike_CS
Control structure containing required parameters for a z-like coordinate
- Parameters
nk
Minimum thickness allowed for layers, in the same thickness units (perhaps [H ~> m or kg m-2]) that will be used in all subsequent calls to build_zstar_column with this structure.
min_thickness
Target coordinate resolution, usually in [Z ~> m]
Functions/Subroutine Documentation
- subroutine init_coord_zlike(CS, nk, coordinateResolution)
Initialise a zlike_CS with pointers to parameters
- Parameters
CS
Unassociated pointer to hold the control structure
nk [in]
Number of levels in the grid
coordinateResolution [in]
Target coordinate resolution [Z ~> m]
- subroutine end_coord_zlike(CS)
Deallocates the zlike control structure
- Parameters
CS
Coordinate control structure
- subroutine set_zlike_params(CS, min_thickness)
Set parameters in the zlike structure
- Parameters
CS
Coordinate control structure
min_thickness [in]
Minimum allowed thickness [H ~> m or kg m-2]
- subroutine build_zstar_column(CS, depth, total_thickness, zInterface, z_rigid_top, eta_orig, zScale)
Builds a z* coordinate with a minimum thickness
- Parameters
CS [in]
Coordinate control structure
depth [in]
Depth of ocean bottom (positive downward in the output units), units may be [Z ~> m] or [H ~> m or kg m-2]
total_thickness [in]
Column thickness (positive definite in the same units as depth) [Z ~> m] or [H ~> m or kg m-2]
zInterface [inout]
Absolute positions of interfaces (in the same units as depth) [Z ~> m] or [H ~> m or kg m-2]
z_rigid_top [in]
The height of a rigid top (positive upward in the same units as depth) [Z ~> m] or [H ~> m or kg m-2]
eta_orig [in]
The actual original height of the top (in the same units as depth) [Z ~> m] or [H ~> m or kg m-2]
zScale [in]
Scaling factor from the target coordinate resolution in Z to desired units for zInterface, perhaps Z_to_H, often [nondim] or [H Z-1 ~> 1 or kg m-3]