Add a function to check at start-up that the mass content of the simulation matches the given cosmology.