tgranulargrain.c: fix argument read - granular - granular dynamics simulation
 (HTM) git clone git://src.adamsgaard.dk/granular
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 585471ea20ce93db5bdd700a9c1ec855c5d4341e
 (DIR) parent 38ee3e966946012ebde62181c49022ba0103853f
 (HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
       Date:   Thu, 22 Apr 2021 19:11:48 +0200
       
       granulargrain.c: fix argument read
       
       Diffstat:
         M granulargrain.c                     |      12 ++++++------
       
       1 file changed, 6 insertions(+), 6 deletions(-)
       ---
 (DIR) diff --git a/granulargrain.c b/granulargrain.c
       t@@ -32,22 +32,22 @@ main(int argc, char *argv[])
                        usage();
                        break;
                case 'u':
       -                g.vel[0] = atoi(EARGF(usage()));
       +                g.vel[0] = atof(EARGF(usage()));
                        break;
                case 'v':
       -                g.vel[1] = atoi(EARGF(usage()));
       +                g.vel[1] = atof(EARGF(usage()));
                        break;
                case 'w':
       -                g.vel[2] = atoi(EARGF(usage()));
       +                g.vel[2] = atof(EARGF(usage()));
                        break;
                case 'x':
       -                g.pos[0] = atoi(EARGF(usage()));
       +                g.pos[0] = atof(EARGF(usage()));
                        break;
                case 'y':
       -                g.pos[1] = atoi(EARGF(usage()));
       +                g.pos[1] = atof(EARGF(usage()));
                        break;
                case 'z':
       -                g.pos[2] = atoi(EARGF(usage()));
       +                g.pos[2] = atof(EARGF(usage()));
                        break;
                default:
                        usage();