Trivial backend: writes user-supplied constant scalars straight
to bc%west/east/south/north’s clamped_* fields. For
fixed-inflow tests and as a polymorphic-dispatch sanity check.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=wp), | public | :: | eta_east | = | 0.0_wp | ||
| real(kind=wp), | public | :: | eta_north | = | 0.0_wp | ||
| real(kind=wp), | public | :: | eta_south | = | 0.0_wp | ||
| real(kind=wp), | public | :: | eta_west | = | 0.0_wp | ||
| real(kind=wp), | public | :: | u_east | = | 0.0_wp | ||
| real(kind=wp), | public | :: | u_west | = | 0.0_wp | ||
| real(kind=wp), | public | :: | v_north | = | 0.0_wp | ||
| real(kind=wp), | public | :: | v_south | = | 0.0_wp |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ocean_boundary_data_constant_t), | intent(inout) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ocean_boundary_data_constant_t), | intent(inout) | :: | this | |||
| real(kind=wp), | intent(in) | :: | t | |||
| type(ocean_bc_state_t), | intent(inout) | :: | bc |
type, extends(ocean_boundary_data_source_t) :: ocean_boundary_data_constant_t !! Trivial backend: writes user-supplied constant scalars straight !! to `bc%west/east/south/north`'s `clamped_*` fields. For !! fixed-inflow tests and as a polymorphic-dispatch sanity check. real(wp) :: u_west = 0.0_wp, u_east = 0.0_wp real(wp) :: v_south = 0.0_wp, v_north = 0.0_wp real(wp) :: eta_west = 0.0_wp, eta_east = 0.0_wp real(wp) :: eta_south = 0.0_wp, eta_north = 0.0_wp contains procedure :: update => constant_update procedure :: destroy => constant_destroy end type ocean_boundary_data_constant_t