mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Merge pull request #1998 from shimwell/all_output_files_to_output_folder
writing files to output folder
This commit is contained in:
commit
e77a92f2a1
2 changed files with 8 additions and 2 deletions
|
|
@ -576,9 +576,12 @@ void write_tallies()
|
|||
if (model::tallies.empty())
|
||||
return;
|
||||
|
||||
// Set filename for tallies_out
|
||||
std::string filename = fmt::format("{}tallies.out", settings::path_output);
|
||||
|
||||
// Open the tallies.out file.
|
||||
std::ofstream tallies_out;
|
||||
tallies_out.open("tallies.out", std::ios::out | std::ios::trunc);
|
||||
tallies_out.open(filename, std::ios::out | std::ios::trunc);
|
||||
|
||||
// Loop over each tally.
|
||||
for (auto i_tally = 0; i_tally < model::tallies.size(); ++i_tally) {
|
||||
|
|
|
|||
|
|
@ -22,8 +22,11 @@ void write_summary()
|
|||
// Display output message
|
||||
write_message("Writing summary.h5 file...", 5);
|
||||
|
||||
// Set filename for summary file
|
||||
std::string filename = fmt::format("{}summary.h5", settings::path_output);
|
||||
|
||||
// Create a new file using default properties.
|
||||
hid_t file = file_open("summary.h5", 'w');
|
||||
hid_t file = file_open(filename, 'w');
|
||||
|
||||
write_header(file);
|
||||
write_nuclides(file);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue