summaryrefslogtreecommitdiffstats
path: root/Smoke/colormap.c
diff options
context:
space:
mode:
authorOliver Schinagl <oliver@schinagl.nl>2008-01-04 17:26:22 (GMT)
committerOliver Schinagl <oliver@schinagl.nl>2008-01-04 17:26:22 (GMT)
commitcf983359977dbea21b49747e3430725209a804ee (patch)
treec69181513a7ba12d365330b614b3b7586410f6e4 /Smoke/colormap.c
parentb12d6854cbb458c3de11266efefa8fb2ea11a1cf (diff)
download2iv35-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.c3
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++)
{