Classical and quantal flux in the optical model