summaryrefslogtreecommitdiff
path: root/src/fracture.c
diff options
context:
space:
mode:
authorpants <jaron@kent-dobias.com>2016-09-09 14:33:56 -0400
committerpants <jaron@kent-dobias.com>2016-09-09 14:33:56 -0400
commit03de79b8c5ebcc206e3450dfbc701211d9c254b0 (patch)
treeea1882e66605bbfcf257692c53f45bf1c4d0d2db /src/fracture.c
parentbf525955316995a56b9fd1e66b9345cdf4ba3561 (diff)
downloadfuse_networks-03de79b8c5ebcc206e3450dfbc701211d9c254b0.tar.gz
fuse_networks-03de79b8c5ebcc206e3450dfbc701211d9c254b0.tar.bz2
fuse_networks-03de79b8c5ebcc206e3450dfbc701211d9c254b0.zip
more refactoring
Diffstat (limited to 'src/fracture.c')
-rw-r--r--src/fracture.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fracture.c b/src/fracture.c
index f36cfdb..f38568f 100644
--- a/src/fracture.c
+++ b/src/fracture.c
@@ -320,7 +320,7 @@ int main(int argc, char *argv[]) {
}
if (save_stress_field || save_voltage_field) {
- double *tmp_voltages = get_voltage(net, &c);
+ double *tmp_voltages = net_voltages(net, &c);
if (save_voltage_field) {
for (uint_t j = 0; j < g->nv; j++) {
voltage_field[3 * voltage_pos] = g->vx[2 * j];
@@ -330,7 +330,7 @@ int main(int argc, char *argv[]) {
}
}
if (save_stress_field) {
- double *tmp_currents = get_current_v(net, tmp_voltages, &c);
+ double *tmp_currents = net_currents(net, tmp_voltages, &c);
for (uint_t j = 0; j < g->ne; j++) {
stress_field[3 * stress_pos] = g->ex[2 * j];
stress_field[3 * stress_pos + 1] = g->ex[2 * j + 1];