Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Weinzierl
teaMPI
Commits
d59e5705
Commit
d59e5705
authored
Aug 30, 2019
by
Phillip Samfass
Browse files
added function that returns bool if calling rank is a "leading rank"
parent
176e1904
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/teaMPI.cpp
View file @
d59e5705
...
@@ -19,6 +19,10 @@ int TMPI_GetTeamNumber() {
...
@@ -19,6 +19,10 @@ int TMPI_GetTeamNumber() {
return
getTeam
();
return
getTeam
();
}
}
int
TMPI_IsLeadingRank
()
{
return
getTeam
()
==
0
;
}
MPI_Comm
TMPI_GetInterTeamComm
()
{
MPI_Comm
TMPI_GetInterTeamComm
()
{
return
getTeamInterComm
();
return
getTeamInterComm
();
}
}
lib/teaMPI.h
View file @
d59e5705
...
@@ -10,3 +10,4 @@
...
@@ -10,3 +10,4 @@
MPI_Comm
TMPI_GetInterTeamComm
();
MPI_Comm
TMPI_GetInterTeamComm
();
int
TMPI_GetTeamNumber
();
int
TMPI_GetTeamNumber
();
int
TMPI_GetInterTeamCommSize
();
int
TMPI_GetInterTeamCommSize
();
int
TMPI_IsLeadingRank
();
Write
Preview
Supports
Markdown
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