At the beginning of calSinglePoten, clear the poten vector.