Meridional mirror of find_uhbt.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | v | |||
| type(local_BT_cont_v_type), | intent(in) | :: | BTC |
pure function find_vhbt(v, BTC) result(vhbt) !! Meridional mirror of `find_uhbt`. !$acc routine seq real(wp), intent(in) :: v type(local_BT_cont_v_type), intent(in) :: BTC real(wp) :: vhbt if (v == 0.0_wp) then vhbt = 0.0_wp else if (v < BTC%vBT_NN) then vhbt = (v - BTC%vBT_NN)*BTC%FA_v_NN + BTC%vh_NN else if (v < 0.0_wp) then vhbt = v*(BTC%FA_v_N0 + BTC%vh_crvN*v**2) else if (v <= BTC%vBT_SS) then vhbt = v*(BTC%FA_v_S0 + BTC%vh_crvS*v**2) else vhbt = (v - BTC%vBT_SS)*BTC%FA_v_SS + BTC%vh_SS end if end function find_vhbt