get bottom stress FABM standard variable and if needed by FABM allocate memory
subroutine link_bottom_stress() !! get bottom stress FABM standard variable and if needed by !! FABM allocate memory integer rc ! status variable id_bottom_stress = model%get_horizontal_variable_id( & standard_variables%bottom_stress) if (model%variable_needs_values(id_bottom_stress)) then allocate(bottom_stress(imt,jmt),stat=rc) if (rc /= 0) stop 'link_bottom_stress(): & Error allocating (bottom_stress)' bottom_stress = 0._rke call model%link_horizontal_data( & id_bottom_stress,bottom_stress) end if end subroutine link_bottom_stress