Interchanged the order of some nested loops in cv-adv-dif.F90