code: def height_water_critical(FlowRate, Width):
      
      #Checking input validity
      ut.check_range([FlowRate, ">0", "Flow rate"], [Width, ">0", "Width"])
      return (FlowRate / (Width * np.sqrt(gravity.magnitude))) ** (2/3)
docs: Return the critical local water depth.