Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sbalzarini Lab
S
Software
P
Parallel Computing
OpenFPM
openfpm_vcluster
Commits
3bd67863
Commit
3bd67863
authored
Jul 11, 2015
by
incardon
Browse files
Print processor name
parent
78d3c225
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/util/Vcluster_log.hpp
View file @
3bd67863
...
@@ -58,8 +58,12 @@ public:
...
@@ -58,8 +58,12 @@ public:
*/
*/
void
openLog
(
size_t
rank
)
void
openLog
(
size_t
rank
)
{
{
int
result
;
char
p_name
[
MPI_MAX_PROCESSOR_NAME
];
MPI_Get_processor_name
(
p_name
,
&
result
);
std
::
stringstream
str
;
std
::
stringstream
str
;
str
<<
"vcluster_log_"
<<
rank
;
str
<<
"vcluster_log_"
<<
p_name
<<
"_"
<<
rank
;
f
.
open
(
str
.
str
());
f
.
open
(
str
.
str
());
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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