From: hackbard Date: Wed, 21 Jul 2004 11:19:28 +0000 (+0000) Subject: fixed stupid bug in ac_write funnction X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bdb2f409daecf16a7bf641a5061435ca4a062e2;p=physik%2Fnlsop.git fixed stupid bug in ac_write funnction --- diff --git a/nlsop.c b/nlsop.c index 2b3a49b..0e06c77 100644 --- a/nlsop.c +++ b/nlsop.c @@ -335,7 +335,7 @@ int calc_max_extra(d3_lattice *d3_l) 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"); @@ -350,6 +350,7 @@ int write_ac_distr(d3_lattice *d3_l,int ac_distr) for(z=0;zmax_z;z++) { + count=0; for(x=0;xmax_x;x++) { for(y=0;ymax_y;y++)