Changing calculate partition num.