diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2022-02-15 12:46:35 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2022-02-15 12:54:41 -0800 |
commit | 627e3a65e5060fb27b8ee7188757af28715a617e (patch) | |
tree | 56355f17f062b9baf2358af40356940def983941 /src/modules/flui2d/flui2d.c | |
parent | 9a98cfe6224757ad21c223f74efb537d9edca24f (diff) |
modules/*: remove inappropriate 'f' numeric suffixes
These are making it into the settings strings, it's benign only
because regexps aren't currently being enforced. Fix it up
anyways.
Diffstat (limited to 'src/modules/flui2d/flui2d.c')
-rw-r--r-- | src/modules/flui2d/flui2d.c | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/src/modules/flui2d/flui2d.c b/src/modules/flui2d/flui2d.c index 3b0e629..388bb7f 100644 --- a/src/modules/flui2d/flui2d.c +++ b/src/modules/flui2d/flui2d.c @@ -16,14 +16,9 @@ * - Vito Caputo <vcaputo@pengaru.com> 10/13/2019 */ -#if 1 /* These knobs affect how the simulated fluid behaves */ -#define DEFAULT_VISCOSITY .000000001f -#define DEFAULT_DIFFUSION .00001f -#else -#define DEFAULT_VISCOSITY .00001f -#define DEFAULT_DIFFUSION .000001f -#endif +#define DEFAULT_VISCOSITY .000000001 +#define DEFAULT_DIFFUSION .00001 #define ROOT 128 // Change this to vary the density field resolution #define SIZE ((ROOT + 2) * (ROOT + 2)) @@ -289,14 +284,14 @@ static int flui2d_setup(const til_settings_t *settings, til_setting_desc_t **nex const char *viscosity; const char *diffusion; const char *values[] = { - ".000000000001f", - ".0000000001f", - ".000000001f", - ".00000001f", - ".0000001f", - ".000001f", - ".00001f", - ".0001f", + ".000000000001", + ".0000000001", + ".000000001", + ".00000001", + ".0000001", + ".000001", + ".00001", + ".0001", NULL }; |