summaryrefslogtreecommitdiffstats
path: root/Smoke/smoke.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/smoke.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/smoke.c')
-rw-r--r--Smoke/smoke.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/Smoke/smoke.c b/Smoke/smoke.c
index 0e62854..70696a4 100644
--- a/Smoke/smoke.c
+++ b/Smoke/smoke.c
@@ -3,8 +3,6 @@
#include <windows.h>
#endif
-#include <stdlib.h>
-
#include <rfftw.h>
#include "fluids.h"
@@ -37,9 +35,9 @@ int smoke_get_dataset(void)
return smoke_dataset;
}
-void smoke_init(size_t frame_size)
+void smoke_set_frame(fftw_real *frame)
{
- smoke_frame = malloc(frame_size);
+ smoke_frame = frame;
}
fftw_real *smoke_get_frame(void)