Introduction
Introduction Statistics Contact Development Disclaimer Help
tfix initialization loop - granular - granular dynamics simulation
git clone git://src.adamsgaard.dk/granular
Log
Files
Refs
README
LICENSE
---
commit 4b251bb974a1af38e7870f25059db82d81c5307d
parent 0430abc7bd911e5ff41dfc6c5b995224520e4f61
Author: Anders Damsgaard <[email protected]>
Date: Thu, 25 Mar 2021 21:15:16 +0100
fix initialization loop
Diffstat:
M simulation.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/simulation.c b/simulation.c
t@@ -41,11 +41,12 @@ sim_defaults(struct simulation *sim)
snprintf(sim->name, sizeof(sim->name), DEFAULT_SIMULATION_NAME);
sim->np = 0;
- for (i = 0; i < 3; i++)
+ 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;
sim->t_end = 0.0;
sim->dt = 0.0;
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.