S* = S_far − S_b (g/kg) — the salinity contrast the haline
exchange acts on. Positive under melting (meltwater freshens
the interface).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(*), | intent(in) | :: | state_handle | |||
| real(kind=wp), | intent(inout) | :: | buf(:,:,:) |
subroutine fill_haline_driving(state_handle, buf) !! `S* = S_far − S_b` (g/kg) — the salinity contrast the haline !! exchange acts on. Positive under melting (meltwater freshens !! the interface). class(*), intent(in) :: state_handle real(wp), intent(inout) :: buf(:, :, :) select type (state => state_handle) class is (ocean_state_t) call cavity_diff_impl(state%cavity_flux%s_far, state%cavity_flux%s_b, & state%cavity_flux%active, buf) end select end subroutine fill_haline_driving