Effects of buoyancy flux on continental shelf circulation