restore the check of case where replication does not sum up to number of particles
restore the check of case where replication does not sum up to number of particles

zhouyan/vSMC,zhouyan/vSMC,zhouyan/vSMC,zhouyan/vSMC