True when ANY edge TAG of the domain needs the baroclinic open-edge
treatment. Reads the global tags only (never has_*), so every
rank gets the same answer: callers use it to gate a COLLECTIVE seam
exchange after ocean_obc_apply_baroclinic.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(ocean_bc_state_t), | intent(in) | :: | bc |
pure logical function ocean_obc_any_open_edge(bc) result(res) !! True when ANY edge TAG of the domain needs the baroclinic open-edge !! treatment. Reads the global tags only (never `has_*`), so every !! rank gets the same answer: callers use it to gate a COLLECTIVE seam !! exchange after `ocean_obc_apply_baroclinic`. type(ocean_bc_state_t), intent(in) :: bc res = is_open_ish(bc%west%bc_type) .or. is_open_ish(bc%east%bc_type) .or. & is_open_ish(bc%south%bc_type) .or. is_open_ish(bc%north%bc_type) end function ocean_obc_any_open_edge