+ if(!(cell_p+j+i*area)->status&AMORPH) count++;
+ }
+ for(j=0;j<area;j++)
+ {
+ if(!(cell_p+j+i*area)->status&AMORPH)
+ {
+ (cell_p+j+i*area)->conc=c_area/count;
+ total+=c_area/count;
+ }
+ }
+ j=0;
+ while(j<c_area%count)
+ {
+ x=rand_get(x_max);
+ y=rand_get(y_max);
+ if(!(cell_p+x+y*x_max+i*area)->status&AMORPH)
+ {
+ (cell_p+x+y*x_max+i*area)->conc+=1;
+ total++;
+ j++;
+ }
+ }
+ }
+ i=0;
+ while(i<c_conc-total)
+ {
+ x=rand_get(x_max);
+ y=rand_get(y_max);
+ z=rand_get_lgp(c_slope,c_c0,z_max);
+ if(!(cell_p+x+y*x_max+z*area)->status&AMORPH)
+ {
+ (cell_p+x+y*x_max+z*area)->conc+=1;
+ i++;
+ }
+ }