diff options
author | Oliver Schinagl <oliver@schinagl.nl> | 2008-01-04 17:26:22 (GMT) |
---|---|---|
committer | Oliver Schinagl <oliver@schinagl.nl> | 2008-01-04 17:26:22 (GMT) |
commit | cf983359977dbea21b49747e3430725209a804ee (patch) | |
tree | c69181513a7ba12d365330b614b3b7586410f6e4 /Smoke/colormap.c | |
parent | b12d6854cbb458c3de11266efefa8fb2ea11a1cf (diff) | |
download | 2iv35-cf983359977dbea21b49747e3430725209a804ee.zip 2iv35-cf983359977dbea21b49747e3430725209a804ee.tar.gz 2iv35-cf983359977dbea21b49747e3430725209a804ee.tar.bz2 |
force/vel/rho now selectable (for flowvis)
Diffstat (limited to 'Smoke/colormap.c')
-rw-r--r-- | Smoke/colormap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Smoke/colormap.c b/Smoke/colormap.c index 392bbac..ae6ba4f 100644 --- a/Smoke/colormap.c +++ b/Smoke/colormap.c @@ -166,12 +166,13 @@ fftw_real *colormap_get_frame(void) void colormap_autoscale(void) { if (colormap_autoscaling) { - int k; + int k, DIM; float value, scale_min, scale_max; scale_min = scale_max = get_dataset(0); colormap_scale_min = scale_min; colormap_scale_max = scale_max; + DIM = fluids_get_dim(); for (k = 1; k < DIM * DIM; k++) { |