summaryrefslogtreecommitdiff
path: root/src/fracture.c
diff options
context:
space:
mode:
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];