int write_ac_distr(d3_lattice *d3_l,int ac_distr)
{
int fd,x,y,z;
- int count=0,offset;
+ int count,offset;
char file[16];
if(ac_distr==1) strcpy(file,"a.plot");
for(z=0;z<d3_l->max_z;z++)
{
+ count=0;
for(x=0;x<d3_l->max_x;x++)
{
for(y=0;y<d3_l->max_y;y++)