Test and analysis of a model of water use by sorghum