diff --git a/mt-kahypar/dynamic/dynamic_io.h b/mt-kahypar/dynamic/dynamic_io.h index 87442734d..23f0abb83 100644 --- a/mt-kahypar/dynamic/dynamic_io.h +++ b/mt-kahypar/dynamic/dynamic_io.h @@ -295,10 +295,11 @@ namespace mt_kahypar::dyn { file.close(); } - void initOutputFile(Context& context, DynamicStrategy* strategy) { + void initOutputFile(Context& context) { if (context.dynamic.server) { return; } + generateFileName(context); std::string filename = context.dynamic.output_path; std::ofstream file(filename); if (!file.is_open()) { diff --git a/mt-kahypar/dynamic/dynamic_partitioner.h b/mt-kahypar/dynamic/dynamic_partitioner.h index 152057599..d11402bc4 100644 --- a/mt-kahypar/dynamic/dynamic_partitioner.h +++ b/mt-kahypar/dynamic/dynamic_partitioner.h @@ -30,7 +30,7 @@ namespace mt_kahypar::dyn { throw std::runtime_error("Unknown dynamic strategy: " + context.dynamic.strategy); } - initOutputFile(context, strategy); + initOutputFile(context); try {