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,16 +30,16 @@ Contact: paradiseo-help@lists.gforge.inria.fr
|
|||
#include <vector>
|
||||
#include <topology/star.h>
|
||||
|
||||
void paradiseo::smp::Star::operator()(unsigned nbIsland, std::vector<std::vector<bool>>& matrix) const
|
||||
void paradiseo::smp::Star::operator()(unsigned nbNode, std::vector<std::vector<bool>>& matrix) const
|
||||
{
|
||||
matrix.clear();
|
||||
std::vector<bool> line (nbIsland,false);
|
||||
std::vector<bool> line (nbNode,false);
|
||||
|
||||
line[0]=true;
|
||||
matrix.assign(nbIsland-1,line);
|
||||
matrix.assign(nbNode-1,line);
|
||||
|
||||
line.clear();
|
||||
line.assign(nbIsland, false);
|
||||
line.assign(nbNode, false);
|
||||
std::vector<std::vector<bool>>::iterator it = matrix.begin();
|
||||
matrix.insert(it, line);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue