Skip to content
Snippets Groups Projects
Commit d228d317 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Use full buffer when creating threadpool output file name, it is needed for MPI

parent 221825ba
Branches
Tags
1 merge request!425Clean up task and threadpool plotting scripts
...@@ -791,10 +791,10 @@ int main(int argc, char *argv[]) { ...@@ -791,10 +791,10 @@ int main(int argc, char *argv[]) {
if (dump_threadpool && (dump_threadpool == 1 || j % dump_threadpool == 1)) { if (dump_threadpool && (dump_threadpool == 1 || j % dump_threadpool == 1)) {
char dumpfile[40]; char dumpfile[40];
#ifdef WITH_MPI #ifdef WITH_MPI
snprintf(dumpfile, 30, "threadpool_info-rank%d-step%d.dat", engine_rank, snprintf(dumpfile, 40, "threadpool_info-rank%d-step%d.dat", engine_rank,
j + 1); j + 1);
#else #else
snprintf(dumpfile, 30, "threadpool_info-step%d.dat", j + 1); snprintf(dumpfile, 40, "threadpool_info-step%d.dat", j + 1);
#endif // WITH_MPI #endif // WITH_MPI
threadpool_dump_log(&e.threadpool, dumpfile, 1); threadpool_dump_log(&e.threadpool, dumpfile, 1);
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment