Preparing to calculate_contact_potential with repulsive contacts