#2893: added scaling by number of rows to make leapfrog integration independent from the number of rows