summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {