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
a0b3a48c
Commit
a0b3a48c
authored
Sep 26, 2016
by
Peter W. Draper
Browse files
Don't mention Rank when running in non-MPI mode
parent
eb7310b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/main.c
View file @
a0b3a48c
...
...
@@ -269,13 +269,12 @@ int main(int argc, char *argv[]) {
}
/* Report host name(s). */
if
(
myrank
==
0
)
{
message
(
"Rank 0 Running on: %s"
,
hostname
());
}
#ifdef WITH_MPI
else
if
(
verbose
>
1
)
{
if
(
myrank
==
0
||
verbose
>
1
)
{
message
(
"Rank %d running on: %s"
,
myrank
,
hostname
());
}
#else
message
(
"Running on: %s"
,
hostname
());
#endif
/* Do we choke on FP-exceptions ? */
...
...
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