summaryrefslogtreecommitdiffstats
path: root/Smoke/heightplots.c
diff options
context:
space:
mode:
Diffstat (limited to 'Smoke/heightplots.c')
-rw-r--r--Smoke/heightplots.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/Smoke/heightplots.c b/Smoke/heightplots.c
index 2f166d6..61efea1 100644
--- a/Smoke/heightplots.c
+++ b/Smoke/heightplots.c
@@ -23,8 +23,11 @@ static float heightplots_alpha = 1.0f;
static int heightplots_dataset = DATASET_RHO;
-static int heightplots_rho, heightplots_vel, heightplots_force = 100;
-static int heightplots_divv, heightplots_divf = 1000;
+static int heightplots_rho = 100;
+static int heightplots_vel = 10;
+static int heightplots_force = 10;
+static int heightplots_divv = 100;
+static int heightplots_divf = 100;
static fftw_real *heightplots_frame;
@@ -84,14 +87,19 @@ void heightplots_set_height(int height)
switch(heightplots_dataset) {
case DATASET_RHO:
heightplots_rho = height;
+ break;
case DATASET_VEL:
heightplots_vel = height;
+ break;
case DATASET_FORCE:
heightplots_force = height;
+ break;
case DATASET_DIVV:
heightplots_divv = height;
+ break;
case DATASET_DIVF:
heightplots_divf = height;
+ break;
default:
break;
}
@@ -106,14 +114,19 @@ int heightplots_get_height(void)
switch(heightplots_dataset) {
case DATASET_RHO:
return_value = heightplots_rho;
+ break;
case DATASET_VEL:
return_value = heightplots_vel;
+ break;
case DATASET_FORCE:
return_value = heightplots_force;
+ break;
case DATASET_DIVV:
return_value = heightplots_divv;
+ break;
case DATASET_DIVF:
return_value = heightplots_divf;
+ break;
default:
break;
}