Bug fix for the dispersion calculate user function (introduced at r21573).
Authored by: bugman 2013-11-21
Parent: [r21574]
Child: [r21576]