Introduction
Introduction Statistics Contact Development Disclaimer Help
tgranulargrain.c: fix argument read - granular - granular dynamics simulation
git clone git://src.adamsgaard.dk/granular
Log
Files
Refs
README
LICENSE
---
commit 585471ea20ce93db5bdd700a9c1ec855c5d4341e
parent 38ee3e966946012ebde62181c49022ba0103853f
Author: Anders Damsgaard <[email protected]>
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(-)
---
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();
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.