This algorithm calculates the amount of metals from each star particle that get distributed to surrounding gas particles in an SPH simulation