Source-selecting shim over ocean_horizontal_viscosity_compute_tendencies_on:
absent u_src/v_src/h_src (all callers today) forwards the
prognostic components — bit-identical; the pred_corr driver passes
the u_av time-mean family (SPEC §4 S3).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(hgrid_t), | intent(in) | :: | grid | |||
| type(ocean_metrics_t), | intent(in) | :: | metrics | |||
| type(ocean_horizontal_viscosity_t), | intent(inout) | :: | this | |||
| type(multilayer_state_t), | intent(in) | :: | ms | |||
| type(ocean_lateral_mix_t), | intent(in), | optional | :: | lateral_mix | ||
| real(kind=wp), | intent(in), | optional | :: | dt | ||
| real(kind=wp), | intent(in), | optional | :: | u_src(:,:,:) | ||
| real(kind=wp), | intent(in), | optional | :: | v_src(:,:,:) | ||
| real(kind=wp), | intent(in), | optional | :: | h_src(:,:,:) |
subroutine ocean_horizontal_viscosity_compute_tendencies(grid, metrics, this, ms, lateral_mix, dt, u_src, v_src, h_src) !! Source-selecting shim over `ocean_horizontal_viscosity_compute_tendencies_on`: !! absent `u_src`/`v_src`/`h_src` (all callers today) forwards the !! prognostic components — bit-identical; the pred_corr driver passes !! the `u_av` time-mean family (SPEC §4 S3). type(hgrid_t), intent(in) :: grid type(ocean_metrics_t), intent(in) :: metrics type(ocean_horizontal_viscosity_t), intent(inout) :: this type(multilayer_state_t), intent(in) :: ms type(ocean_lateral_mix_t), intent(in), optional :: lateral_mix real(wp), intent(in), optional :: dt ! assumed-shape-ok: pure passthrough to the _on shim. real(wp), intent(in), optional :: u_src(:, :, :), v_src(:, :, :), h_src(:, :, :) if (present(u_src)) then call ocean_horizontal_viscosity_compute_tendencies_on(grid, metrics, this, ms, & u_src, v_src, h_src, lateral_mix=lateral_mix, dt=dt) else call ocean_horizontal_viscosity_compute_tendencies_on(grid, metrics, this, ms, & ms%u_face_x_layer, ms%v_face_y_layer, ms%h_layer, & lateral_mix=lateral_mix, dt=dt) end if end subroutine ocean_horizontal_viscosity_compute_tendencies