Fill tau_x / tau_y uniformly with the given scalar
values. Convenience helper for the spatially-constant
wind case (the Tier-1 default and most unit tests). Host
only — call enter_data afterwards (or !$acc update
device if already mapped) to sync to GPU. Refreshes
stress_mag in step (PR-12) so every existing caller —
production and unit test alike — gets a consistent
stress_mag with no separate call required.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ocean_surface_stress_t), | intent(inout) | :: | this | |||
| real(kind=wp), | intent(in) | :: | tau_x_val | |||
| real(kind=wp), | intent(in) | :: | tau_y_val |
subroutine ocean_surfstress_set_const(this, tau_x_val, tau_y_val) !! Fill `tau_x` / `tau_y` uniformly with the given scalar !! values. Convenience helper for the spatially-constant !! wind case (the Tier-1 default and most unit tests). Host !! only — call `enter_data` afterwards (or `!$acc update !! device` if already mapped) to sync to GPU. Refreshes !! `stress_mag` in step (PR-12) so every existing caller — !! production and unit test alike — gets a consistent !! `stress_mag` with no separate call required. class(ocean_surface_stress_t), intent(inout) :: this real(wp), intent(in) :: tau_x_val, tau_y_val this%tau_x = tau_x_val this%tau_y = tau_y_val call ocean_surfstress_refresh_stress_mag(this) end subroutine ocean_surfstress_set_const