get wind speed FABM standard variable and if needed by FABM allocate memory
subroutine link_wind() !! get wind speed FABM standard variable and if needed by FABM !! allocate memory integer rc ! status variable id_windspeed = model%get_horizontal_variable_id( & standard_variables%wind_speed) if (model%variable_needs_values(id_windspeed)) then allocate(windspeed(imt,jmt),stat=rc) if (rc /= 0) stop & 'link_wind(): Error allocating (windspeed)' windspeed = 0._rke call model%link_horizontal_data(id_windspeed,windspeed) end if end subroutine link_wind