tadd missing header, reduce example packing size - granular - granular dynamics… | |
git clone git://src.adamsgaard.dk/granular | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit f845375be0ff38fab566a064266a8507331bb08c | |
parent 7dd9725c18d77d9d8284980f7d952a58d03f4ca0 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Fri, 19 Mar 2021 22:07:47 +0100 | |
add missing header, reduce example packing size | |
Diffstat: | |
M granularpacking.c | 3 ++- | |
M packing.c | 1 + | |
2 files changed, 3 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/granularpacking.c b/granularpacking.c | |
t@@ -1,4 +1,5 @@ | |
#include <stdio.h> | |
+#include <stdlib.h> | |
#include "packing.h" | |
#include "simulation.h" | |
#include "arrays.h" | |
t@@ -10,7 +11,7 @@ main(void) | |
struct simulation sim; | |
size_t n[3], np = 0; | |
- n[0] = 50; n[1] = 50; n[2] = 50; | |
+ n[0] = 10; n[1] = 5; n[2] = 1; | |
double *origo = zeros(3); | |
/* np = rectangular_packing(&sim.grains, n, 1.0, 1.0, random_value_uni… | |
diff --git a/packing.c b/packing.c | |
t@@ -1,4 +1,5 @@ | |
#include <stdio.h> | |
+#include <stdlib.h> | |
#include <err.h> | |
#include <math.h> | |
#include "util.h" |