Skip to content

Commit 3629164

Browse files
authored
Fix boundary writing issue (#420)
For simulation with multiple meshes, the output txt file should be closed after it loops over all meshes.
1 parent 553849b commit 3629164

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Code/Source/solver/txt.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -497,11 +497,10 @@ void write_boundary_integral_data(const ComMod& com_mod, CmMod& cm_mod, const eq
497497
fprintf(fp, " %.10e ", tmp);
498498
}
499499
}
500-
501-
if (com_mod.cm.mas(cm_mod)) {
502-
fprintf(fp, "\n");
503-
fclose(fp);
504-
}
500+
}
501+
if (com_mod.cm.mas(cm_mod)) {
502+
fprintf(fp, "\n");
503+
fclose(fp);
505504
}
506505
}
507506

0 commit comments

Comments
 (0)