tfix initialization loop - granular - granular dynamics simulation (HTM) git clone git://src.adamsgaard.dk/granular (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 4b251bb974a1af38e7870f25059db82d81c5307d (DIR) parent 0430abc7bd911e5ff41dfc6c5b995224520e4f61 (HTM) Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Thu, 25 Mar 2021 21:15:16 +0100 fix initialization loop Diffstat: M simulation.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- (DIR) 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;