projects
/
physik
/
nlsop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d4ed8b6
)
fixed stupid bug in ac_write funnction
author
hackbard
<hackbard>
Wed, 21 Jul 2004 11:19:28 +0000
(11:19 +0000)
committer
hackbard
<hackbard>
Wed, 21 Jul 2004 11:19:28 +0000
(11:19 +0000)
nlsop.c
patch
|
blob
|
history
diff --git
a/nlsop.c
b/nlsop.c
index
2b3a49b
..
0e06c77
100644
(file)
--- 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 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");
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;z<d3_l->max_z;z++)
{
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++)
for(x=0;x<d3_l->max_x;x++)
{
for(y=0;y<d3_l->max_y;y++)