cg : warning and exit when n%size!=0