Skip to content

Commit

Permalink
Tweak Output File Names
Browse files Browse the repository at this point in the history
  • Loading branch information
T3C42 committed Dec 2, 2024
1 parent d5bd1dd commit f96d346
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion mt-kahypar/dynamic/dynamic_io.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace mt_kahypar::dyn {
// create folder
std::filesystem::create_directory(context.dynamic.output_path);
// add file name
context.dynamic.output_path += std::to_string(context.partition.k) + "k_";
context.dynamic.output_path += context.dynamic.getOutputFileName();
// add
context.dynamic.output_path += ".csv";
Expand Down Expand Up @@ -306,7 +307,7 @@ namespace mt_kahypar::dyn {
if (!file.is_open()) {
throw std::runtime_error("Could not open file: " + filename);
}
file << "iteration, km1, imbalance" << std::endl;
file << "change, km1, imbalance" << std::endl;
file.close();
}

Expand Down
2 changes: 1 addition & 1 deletion mt-kahypar/partition/context.h
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ struct DynamicParameters {
file_name += std::to_string(use_final_weight) + "_";
// round to 2 decimal places
file_name += std::to_string((int)(step_size_pct * 100)) + "_";
file_name += std::to_string(reduce_deg_0) + "_";
file_name += std::to_string(reduce_deg_0);
file_name += custom_output_file;
return file_name;
}
Expand Down

0 comments on commit f96d346

Please sign in to comment.