Return the default remap procedure pointer for an output vgrid. Used by the registration path to attach the right conservative remap when a diagnostic selects a non-layer output coordinate. Null for LAYER / unknown (no remap needed).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | coord | |||
| procedure(diag_remap_proc), | intent(out), | pointer | :: | remap |
subroutine coord_remap_proc(coord, remap) !! Return the default remap procedure pointer for an output vgrid. !! Used by the registration path to attach the right conservative !! remap when a diagnostic selects a non-layer output coordinate. !! Null for LAYER / unknown (no remap needed). integer, intent(in) :: coord procedure(diag_remap_proc), pointer, intent(out) :: remap select case (coord) case (DIAG_VGRID_Z_FIXED) remap => remap_layer_to_z case (DIAG_VGRID_SIGMA) remap => remap_layer_to_sigma case (DIAG_VGRID_ZSTAR) remap => remap_layer_to_zstar case (DIAG_VGRID_DENSITY) remap => remap_layer_to_density case default remap => null() end select end subroutine coord_remap_proc