diff --git a/src/chemistry/EAGLE/chemistry.h b/src/chemistry/EAGLE/chemistry.h index b8a50f237ae12dcc9216f5552bd931be62102662..f095c8bcef65ff67c134baa03181f043b0e533c5 100644 --- a/src/chemistry/EAGLE/chemistry.h +++ b/src/chemistry/EAGLE/chemistry.h @@ -129,7 +129,21 @@ chemistry_part_has_no_neighbours(struct part* restrict p, struct xpart* restrict xp, const struct chemistry_global_data* cd, const struct cosmology* cosmo) { - error("Needs implementing!"); + + /* Just make all the smoothed fields default to the un-smoothed values */ + struct chemistry_part_data* cpd = &p->chemistry_data; + + /* Total metal mass fraction */ + cpd->smoothed_metal_mass_fraction_total = cpd->metal_mass_fraction_total; + + /* Iron frac from SNIa */ + cpd->smoothed_iron_mass_fraction_from_SNIa = + cpd->iron_mass_fraction_from_SNIa; + + /* Individual metal mass fractions */ + for (int i = 0; i < chemistry_element_count; i++) { + cpd->smoothed_metal_mass_fraction[i] = cpd->metal_mass_fraction[i]; + } } /**