Absolute (pressure) position of neutral surface ks in a column
(MOM6 absolute_position): Pint(K) + frac*(Pint(K+1)-Pint(K)).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | nk | |||
| real(kind=wp), | intent(in) | :: | Pint(nk+1) |
interface pressures |
||
| integer, | intent(in) | :: | Karr |
layer index for this surface |
||
| real(kind=wp), | intent(in) | :: | frac |
fractional position within the layer |
pure function redi_absolute_position(nk, Pint, Karr, frac) result(p) !$acc routine seq integer, intent(in) :: nk real(wp), intent(in) :: Pint(nk + 1) !! interface pressures integer, intent(in) :: Karr !! layer index for this surface real(wp), intent(in) :: frac !! fractional position within the layer real(wp) :: p p = Pint(Karr) + frac*(Pint(Karr + 1) - Pint(Karr)) end function redi_absolute_position