The topology is reconstructed even if the number of nodes did not change in order to start the model more than once (Nils Mangelsen)

This commit is contained in:
quemy 2013-02-07 23:24:15 +01:00
commit b411e85607
3 changed files with 41 additions and 49 deletions

View file

@ -31,8 +31,6 @@ Contact: paradiseo-help@lists.gforge.inria.fr
#include <vector>
void paradiseo::smp::Complete::operator()(unsigned nbNode, std::vector<std::vector<bool>>& matrix) const
{
if(nbNode != matrix.size())
{
matrix.clear();
@ -46,4 +44,3 @@ void paradiseo::smp::Complete::operator()(unsigned nbNode, std::vector<std::vect
for(unsigned i = 0; i < nbNode; i++)
matrix[i][i]=false;
}
}

View file

@ -33,8 +33,6 @@ Contact: paradiseo-help@lists.gforge.inria.fr
#include <assert.h>
void paradiseo::smp::Hypercubic::operator()(unsigned nbNode, std::vector<std::vector<bool>>& matrix) const
{
if(nbNode != matrix.size())
{
// Check if the number of node is coherent with an hypercube
assert((nbNode & (nbNode-1)) == 0);
@ -62,4 +60,3 @@ void paradiseo::smp::Hypercubic::operator()(unsigned nbNode, std::vector<std::ve
}
}
}
}

View file

@ -31,8 +31,6 @@ Contact: paradiseo-help@lists.gforge.inria.fr
#include <topology/ring.h>
void paradiseo::smp::Ring::operator()(unsigned nbNode, std::vector<std::vector<bool>>& matrix) const
{
if(nbNode != matrix.size())
{
matrix.clear();