Bug fix in the calc_ave_dist() method for multiple models.
Authored by: bugman 2009-04-15
Parent: [r9008]
Child: [r9010]