diff options
author | Oliver Schinagl <oliver@schinagl.nl> | 2008-01-09 16:22:34 (GMT) |
---|---|---|
committer | Oliver Schinagl <oliver@schinagl.nl> | 2008-01-09 16:22:34 (GMT) |
commit | 4b45e834c8a243d299f7b09960dc43db58cb7910 (patch) | |
tree | 81f58e6af8c70b1695ff374d085cacd15edd0d13 /Smoke/fluids.h | |
parent | 19104903490d2c67f9b385804a7f89df8f6fc48c (diff) | |
download | 2iv35-4b45e834c8a243d299f7b09960dc43db58cb7910.zip 2iv35-4b45e834c8a243d299f7b09960dc43db58cb7910.tar.gz 2iv35-4b45e834c8a243d299f7b09960dc43db58cb7910.tar.bz2 |
fix frame history!
Diffstat (limited to 'Smoke/fluids.h')
-rw-r--r-- | Smoke/fluids.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Smoke/fluids.h b/Smoke/fluids.h index c9ba8b1..555614e 100644 --- a/Smoke/fluids.h +++ b/Smoke/fluids.h @@ -29,11 +29,13 @@ extern int frame_index; #define VECTOR_VEL 0 #define VECTOR_FORCE 1 -#define GLYPH_LINES 0 -#define GLYPH_TRIANGLES 1 -#define GLYPH_CONES 2 -#define GLYPH_ARROWS 3 -#define GLYPH_QUAKE 4 +#define GLYPH_LINES 0 +#define GLYPH_TRIANGLES 1 +#define GLYPH_CONES 2 +#define GLYPH_ARROWS 3 +#define GLYPH_QUAKE 4 + +#define HISTORY_SIZE 40 extern int winWidth, winHeight; //size of the graphics window, in pixels extern int color_dir; //use direction color-coding or not @@ -65,7 +67,7 @@ struct vis_data_arrays { fftw_real *div_force; fftw_real *height; struct point *normals; - fftw_real *history[50]; + fftw_real *history[HISTORY_SIZE]; }; |