Fix the usage of individual contribution accumulators in the gravity code See merge request !1229
mentioned in merge request !1190 (merged)