Commit d59e5705 authored by Phillip Samfass's avatar Phillip Samfass
Browse files

added function that returns bool if calling rank is a "leading rank"

parent 176e1904
...@@ -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();
} }
...@@ -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();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment