tmake sim_detect_contacts non-static - granular - granular dynamics simulation | |
git clone git://src.adamsgaard.dk/granular | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit d0dd8f9a311789e5c00feef1a1b27173c4aa95a9 | |
parent 6d6eafcf901cd2d9e177a7052201542998a68fd6 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Thu, 8 Apr 2021 22:34:45 +0200 | |
make sim_detect_contacts non-static | |
Diffstat: | |
M simulation.c | 2 +- | |
M simulation.h | 1 + | |
2 files changed, 2 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/simulation.c b/simulation.c | |
t@@ -123,7 +123,7 @@ sim_check_add_contact(struct simulation *sim, size_t i, si… | |
grain_register_contact(&sim->grains[j], i, j, centerdistinv, overlap); | |
} | |
-static void | |
+void | |
sim_detect_contacts(struct simulation *sim) | |
{ | |
size_t i, j; | |
diff --git a/simulation.h b/simulation.h | |
t@@ -44,6 +44,7 @@ void sim_read_grains(struct simulation *sim, FILE *stream); | |
void sim_print_grains(FILE *stream, const struct simulation *sim); | |
void sim_print_grains_vtk(FILE *stream, const struct simulation *sim); | |
+void sim_detect_contacts(struct simulation *sim); | |
void sim_step_time(struct simulation *sim); | |
void sim_run_time_loop(struct simulation *sim); | |