Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
d228d317
Commit
d228d317
authored
Sep 15, 2017
by
Peter W. Draper
Browse files
Use full buffer when creating threadpool output file name, it is needed for MPI
parent
221825ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/main.c
View file @
d228d317
...
...
@@ -791,10 +791,10 @@ int main(int argc, char *argv[]) {
if
(
dump_threadpool
&&
(
dump_threadpool
==
1
||
j
%
dump_threadpool
==
1
))
{
char
dumpfile
[
40
];
#ifdef WITH_MPI
snprintf
(
dumpfile
,
3
0
,
"threadpool_info-rank%d-step%d.dat"
,
engine_rank
,
snprintf
(
dumpfile
,
4
0
,
"threadpool_info-rank%d-step%d.dat"
,
engine_rank
,
j
+
1
);
#else
snprintf
(
dumpfile
,
3
0
,
"threadpool_info-step%d.dat"
,
j
+
1
);
snprintf
(
dumpfile
,
4
0
,
"threadpool_info-step%d.dat"
,
j
+
1
);
#endif // WITH_MPI
threadpool_dump_log
(
&
e
.
threadpool
,
dumpfile
,
1
);
}
else
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment