summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2017-07-07 14:40:20 -0400
committerJaron Kent-Dobias <jaron@kent-dobias.com>2017-07-07 14:40:20 -0400
commit9cc92bd630302936bbd7a41ac48de16678b615a3 (patch)
treecc94e9bbc917c1a246f50da0759a35a613de5433 /src
parentfa590b7542c11b417ee87eebdd162b7aa08b57d4 (diff)
downloadfuse_networks-9cc92bd630302936bbd7a41ac48de16678b615a3.tar.gz
fuse_networks-9cc92bd630302936bbd7a41ac48de16678b615a3.tar.bz2
fuse_networks-9cc92bd630302936bbd7a41ac48de16678b615a3.zip
changes
Diffstat (limited to 'src')
-rw-r--r--src/fracture.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/fracture.c b/src/fracture.c
index ede7a24..6d1c768 100644
--- a/src/fracture.c
+++ b/src/fracture.c
@@ -161,12 +161,13 @@ int main(int argc, char *argv[]) {
}
char boundc;
- if (use_voltage_boundaries)
+ if (use_voltage_boundaries) {
boundc = 'v';
- else
+ } else {
boundc = 'c';
- FILE *data_out;
+
+}FILE *data_out;
if (save_data) {
char *data_filename = (char *)malloc(filename_len * sizeof(char));
snprintf(data_filename, filename_len, "data_%c_%c_%c_%c_%u_%g_%g.txt",
@@ -325,8 +326,9 @@ int main(int argc, char *argv[]) {
}
}
- if (save_crit_stress)
+ if (save_crit_stress) {
crit_stress[i] = data->extern_field[max_pos];
+}
if (save_conductivity) {
if (max_pos > 0) {