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
|
|
@ -31,17 +31,17 @@ Contact: paradiseo-help@lists.gforge.inria.fr
|
|||
#include <vector>
|
||||
|
||||
template <class TopologyType>
|
||||
std::vector<unsigned> paradiseo::smp::Topology<TopologyType>::getIdNeighbors(unsigned idIsland) const
|
||||
std::vector<unsigned> paradiseo::smp::Topology<TopologyType>::getIdNeighbors(unsigned idNode) const
|
||||
{
|
||||
std::vector<unsigned> neighbors;
|
||||
for(unsigned j=0; j<_matrix.size();j++)
|
||||
if(_matrix[idIsland][j]) neighbors.push_back(j);
|
||||
if(_matrix[idNode][j]) neighbors.push_back(j);
|
||||
|
||||
return neighbors;
|
||||
}
|
||||
|
||||
template <class TopologyType>
|
||||
void paradiseo::smp::Topology<TopologyType>::construct(unsigned nbIsland)
|
||||
void paradiseo::smp::Topology<TopologyType>::construct(unsigned nbNode)
|
||||
{
|
||||
_builder(nbIsland, _matrix);
|
||||
_builder(nbNode, _matrix);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue