declared filename before use

This commit is contained in:
shimwell 2022-03-10 21:30:41 +00:00
parent e14de1600a
commit 1b6a341878
2 changed files with 2 additions and 0 deletions

View file

@ -577,6 +577,7 @@ void write_tallies()
return;
// Set filename for tallies_out
std::string filename;
filename = fmt::format("{}tallies.out", settings::path_output);
// Open the tallies.out file.

View file

@ -23,6 +23,7 @@ void write_summary()
write_message("Writing summary.h5 file...", 5);
// Set filename for summary file
std::string filename;
filename = fmt::format("{}summary.h5", settings::path_output);
// Create a new file using default properties.