From 4ecec70f2185b62f3713c27a02cb07d76e6cf3d7 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <schaller@strw.leidenuniv.nl>
Date: Sat, 14 Sep 2019 18:44:29 +0200
Subject: [PATCH] Use the correct type to read the dithering ratio.

---
 examples/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/main.c b/examples/main.c
index 3cc4b2f9da..200ff9920e 100644
--- a/examples/main.c
+++ b/examples/main.c
@@ -766,7 +766,7 @@ int main(int argc, char *argv[]) {
         params, "InitialConditions:generate_gas_in_ics", 0);
     const int with_dithering =
         parser_get_opt_param_int(params, "InitialConditions:dithering", 0);
-    int dithering_ratio = 0.;
+    double dithering_ratio = 0.;
     if (with_dithering) {
       dithering_ratio =
           parser_get_param_double(params, "InitialConditions:dithering_ratio");
-- 
GitLab