summaryrefslogtreecommitdiff
path: root/src/fracture.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fracture.c')
-rw-r--r--src/fracture.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fracture.c b/src/fracture.c
index bb7701b..af9cd0f 100644
--- a/src/fracture.c
+++ b/src/fracture.c
@@ -325,6 +325,14 @@ int main(int argc, char *argv[]) {
}
}
+ FILE *testout = fopen("test.txt", "w");
+ double *tmp_voltage = net_voltages(net, &c);
+ for (uint_t j = 0; j < g->bound_inds[1]; j++) {
+ fprintf(testout, "%g ", tmp_voltage[g->bound_verts[j]]-tmp_voltage[g->nv+j]);
+ }
+ fclose(testout);
+ free(tmp_voltage);
+
if (save_damage) {
uint_t would_break = 0;
double *tmp_voltage = net_voltages(net, &c);