updated ewald breakup routine