Source Code for "Two Interacting Ellipsoidal Inhomogeneities: Applications in Geoscience"