Skip to content

Commit

Permalink
Fix initOutputFile
Browse files Browse the repository at this point in the history
  • Loading branch information
T3C42 committed Dec 1, 2024
1 parent d2d6b72 commit efbf5e3
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 @@ -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()) {
Expand Down
2 changes: 1 addition & 1 deletion mt-kahypar/dynamic/dynamic_partitioner.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace mt_kahypar::dyn {
throw std::runtime_error("Unknown dynamic strategy: " + context.dynamic.strategy);
}

initOutputFile(context, strategy);
initOutputFile(context);

try {

Expand Down

0 comments on commit efbf5e3

Please sign in to comment.