Consistency of names and guard in topology.h
This commit is contained in:
parent
95b7b80f19
commit
6b2a695622
11 changed files with 47 additions and 42 deletions
|
|
@ -30,13 +30,13 @@ Contact: paradiseo-help@lists.gforge.inria.fr
|
|||
#include <vector>
|
||||
#include <topology/ring.h>
|
||||
|
||||
void paradiseo::smp::Ring::operator()(unsigned nbIsland, std::vector<std::vector<bool>>& matrix) const
|
||||
void paradiseo::smp::Ring::operator()(unsigned nbNode, std::vector<std::vector<bool>>& matrix) const
|
||||
{
|
||||
matrix.clear();
|
||||
std::vector<bool> line;
|
||||
line.assign(nbIsland, false);
|
||||
matrix.assign(nbIsland, line);
|
||||
line.assign(nbNode, false);
|
||||
matrix.assign(nbNode, line);
|
||||
|
||||
for(int i=0; i<nbIsland;i++)
|
||||
matrix[i][(i+1)%nbIsland]=true;
|
||||
for(int i=0; i<nbNode;i++)
|
||||
matrix[i][(i+1)%nbNode]=true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue