From f96d346f63ed7085094a76a239bfd8512cb3437b Mon Sep 17 00:00:00 2001 From: Tobias Kempf Date: Mon, 2 Dec 2024 23:05:42 +0100 Subject: [PATCH] Tweak Output File Names --- mt-kahypar/dynamic/dynamic_io.h | 3 ++- mt-kahypar/partition/context.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mt-kahypar/dynamic/dynamic_io.h b/mt-kahypar/dynamic/dynamic_io.h index cad75366b..cffdaebbb 100644 --- a/mt-kahypar/dynamic/dynamic_io.h +++ b/mt-kahypar/dynamic/dynamic_io.h @@ -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"; @@ -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(); } diff --git a/mt-kahypar/partition/context.h b/mt-kahypar/partition/context.h index 95c22e66b..f3de65110 100644 --- a/mt-kahypar/partition/context.h +++ b/mt-kahypar/partition/context.h @@ -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; }