From 1bdb2f409daecf16a7bf641a5061435ca4a062e2 Mon Sep 17 00:00:00 2001 From: hackbard Date: Wed, 21 Jul 2004 11:19:28 +0000 Subject: [PATCH] fixed stupid bug in ac_write funnction --- nlsop.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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++) -- 2.39.2