Ice temperature actually used: exactly zero when the mode ignores
it, so an unset or stale T_ice cannot leak into an insulating
run through L_eff.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(ocean_cavity_ice_t), | intent(in) | :: | ice |
Ice-conduction bundle. |
pure function cavity_t_ice(ice) result(T_ice) !! Ice temperature actually used: exactly zero when the mode ignores !! it, so an unset or stale `T_ice` cannot leak into an insulating !! run through `L_eff`. !$acc routine seq type(ocean_cavity_ice_t), intent(in) :: ice !! Ice-conduction bundle. real(wp) :: T_ice if (ice%mode == CAVITY_ICE_INSULATING) then T_ice = 0.0_wp else T_ice = ice%T_ice end if end function cavity_t_ice