Added check in initialisation routine for shared_and_replicated_distribution type to check that the total number of cores used is less than the number of particles in the system.