X-Git-Url: https://hackdaworld.org/gitweb/?p=physik%2Fnlsop.git;a=blobdiff_plain;f=nlsop.c;h=0e06c77432cb0385ba0298cb7e1382341ce2e3af;hp=2b3a49b11def209758de15f6873479e85c0309b2;hb=1bdb2f409daecf16a7bf641a5061435ca4a062e2;hpb=d4ed8b66408122dc0d98f0861236554e21b5bbb3 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++)