tgrain.c: add missing density value check - granular - granular dynamics simulation | |
git clone git://src.adamsgaard.dk/granular | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 0dc426c8b11d38d85d984ece057b53911b74330a | |
parent b56ddb27d47ed549245aedb47bbed51949c8c36e | |
Author: Anders Damsgaard | |
Date: Thu, 22 Apr 2021 14:22:24 +0200 grain.c: add missing density value check Diffstat: M grain.c | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) --- | |
diff --git a/grain.c b/grain.c | |
t@@ -217,6 +217,7 @@ grain_check_values(const struct grain *g) check_float("grain->contact_stress", g->contact_stress[i], &status); } + check_float_non_negative("grain->density", g->density, &status); check_int_bool("grain->fixed", g->fixed, &status); check_int_bool("grain->rotating", g->rotating, &status); check_int_bool("grain->enabled", g->enabled, &status); |