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
Merge branch 'master' of framagit.org:simgrid/simgrid
[simgrid.git]
/
src
/
smpi
/
colls
/
coll_tuned_topo.cpp
diff --git
a/src/smpi/colls/coll_tuned_topo.cpp
b/src/smpi/colls/coll_tuned_topo.cpp
index
7138c7e
..
c952770
100644
(file)
--- a/
src/smpi/colls/coll_tuned_topo.cpp
+++ b/
src/smpi/colls/coll_tuned_topo.cpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2013-201
7
. The SimGrid Team.
+/* Copyright (c) 2013-201
9
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-52,10
+52,10
@@
static int calculate_num_nodes_up_to_level( int fanout, int level )
{
/* just use geometric progression formula for sum:
a^0+a^1+...a^(n-1) = (a^n-1)/(a-1) */
{
/* just use geometric progression formula for sum:
a^0+a^1+...a^(n-1) = (a^n-1)/(a-1) */
- if(fanout > 1)
-
return ((pown(fanout,level) - 1)/
(fanout - 1));
- else
- return 0; // is this right ?
+ if (fanout > 1)
+
return ((pown(fanout, level) - 1) /
(fanout - 1));
+
else
+
return 0; // is this right ?
}
/*
}
/*