summaryrefslogtreecommitdiff
path: root/src/break_data.c
diff options
context:
space:
mode:
authorpants <jaron@kent-dobias.com>2016-09-08 12:46:49 -0400
committerpants <jaron@kent-dobias.com>2016-09-08 12:46:49 -0400
commit9c6505dace488032dc4f5e3bbb8c5a4cb154b429 (patch)
tree7d2323a5bb0d01a1675905dcdf7289bf33d03e4f /src/break_data.c
parent2b7e4f906d8595994c36f9254574caff13c172a4 (diff)
downloadfuse_networks-9c6505dace488032dc4f5e3bbb8c5a4cb154b429.tar.gz
fuse_networks-9c6505dace488032dc4f5e3bbb8c5a4cb154b429.tar.bz2
fuse_networks-9c6505dace488032dc4f5e3bbb8c5a4cb154b429.zip
more refactoring
Diffstat (limited to 'src/break_data.c')
-rw-r--r--src/break_data.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/break_data.c b/src/break_data.c
deleted file mode 100644
index 5c922f3..0000000
--- a/src/break_data.c
+++ /dev/null
@@ -1,34 +0,0 @@
-
-#include "fracture.h"
-
-data_t *alloc_break_data(unsigned int num_edges) {
- data_t *data = malloc(1 * sizeof(data_t)); assert(data != NULL);
-
- data->num_broken = 0;
-
- data->break_list = (unsigned int *)malloc(num_edges * sizeof(unsigned int));
- assert(data->break_list != NULL);
-
- data->extern_field = (double *)malloc(num_edges * sizeof(double));
- assert(data->extern_field != NULL);
-
- data->conductivity = (double *)malloc(num_edges * sizeof(double));
- assert(data->conductivity != NULL);
-
- return data;
-}
-
-void free_break_data(data_t *data) {
- free(data->break_list);
- free(data->extern_field);
- free(data->conductivity);
- free(data);
-}
-
-void update_break_data(data_t *data, unsigned int last_broke, double strength, double conductivity) {
- data->break_list[data->num_broken] = last_broke;
- data->extern_field[data->num_broken] = strength;
- data->conductivity[data->num_broken] = conductivity;
- data->num_broken++;
-}
-