A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use type bool for boolean variables in smpi/colls/.
[simgrid.git]
/
src
/
smpi
/
colls
/
allgather
/
allgather-2dmesh.cpp
diff --git
a/src/smpi/colls/allgather/allgather-2dmesh.cpp
b/src/smpi/colls/allgather/allgather-2dmesh.cpp
index
0a774ad
..
e1810a3
100644
(file)
--- a/
src/smpi/colls/allgather/allgather-2dmesh.cpp
+++ b/
src/smpi/colls/allgather/allgather-2dmesh.cpp
@@
-53,7
+53,7
@@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* Function: is_2dmesh
* Function: is_2dmesh
- * Return:
int
+ * Return:
bool
* Inputs:
num: the number of processors in a communicator
* Inputs:
num: the number of processors in a communicator
@@
-66,7
+66,7
@@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
****************************************************************************/
#ifndef TWOD
#define TWOD
****************************************************************************/
#ifndef TWOD
#define TWOD
-static
int is_2dmesh(int num, int *i, int *
j)
+static
bool is_2dmesh(int num, int* i, int*
j)
{
int x, max = num / 2;
x = sqrt(double(num));
{
int x, max = num / 2;
x = sqrt(double(num));
@@
-82,11
+82,11
@@
static int is_2dmesh(int num, int *i, int *j)
*j = x;
}
*j = x;
}
- return
1
;
+ return
true
;
}
x++;
}
}
x++;
}
- return
0
;
+ return
false
;
}
#endif
/*****************************************************************************
}
#endif
/*****************************************************************************