talso initialize sorting grid value - granular - granular dynamics simulation | |
git clone git://src.adamsgaard.dk/granular | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 0430abc7bd911e5ff41dfc6c5b995224520e4f61 | |
parent 1d79f5762a0addfe9627c264a97a6e5e699b7ae1 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Thu, 25 Mar 2021 21:14:50 +0100 | |
also initialize sorting grid value | |
Diffstat: | |
M simulation.c | 1 + | |
1 file changed, 1 insertion(+), 0 deletions(-) | |
--- | |
diff --git a/simulation.c b/simulation.c | |
t@@ -43,6 +43,7 @@ sim_defaults(struct simulation *sim) | |
sim->np = 0; | |
for (i = 0; i < 3; i++) | |
sim->constacc[i] = 0.0; | |
+ sim->nd[i] = 1; | |
sim->origo[i] = 0.0; | |
sim->L[i] = 1.0; | |
sim->t = 0.0; |