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