Auto Commit
This commit is contained in:
@@ -28,6 +28,10 @@ int main(int argc, char* argv[])
|
|||||||
// std::cout << std::endl;
|
// std::cout << std::endl;
|
||||||
// }
|
// }
|
||||||
flatMatrix = matrixTools::FlattenMatrix(costMatrix);
|
flatMatrix = matrixTools::FlattenMatrix(costMatrix);
|
||||||
|
for(int i = 0; i < cities.size(); i++){
|
||||||
|
std::cout << cities[i].GetName() << " ";
|
||||||
|
}
|
||||||
|
std::cout << std::endl;
|
||||||
}
|
}
|
||||||
MPI_Bcast(&citiesSize, 1, MPI_INT, 0, MPI_COMM_WORLD);
|
MPI_Bcast(&citiesSize, 1, MPI_INT, 0, MPI_COMM_WORLD);
|
||||||
if(rank){
|
if(rank){
|
||||||
@@ -47,10 +51,6 @@ int main(int argc, char* argv[])
|
|||||||
costMatrix = matrixTools::UnflattenMatrix(flatMatrix, citiesSize, citiesSize);
|
costMatrix = matrixTools::UnflattenMatrix(flatMatrix, citiesSize, citiesSize);
|
||||||
//Make permutations
|
//Make permutations
|
||||||
std::cout << "source size from main " << cities.size() << std::endl;
|
std::cout << "source size from main " << cities.size() << std::endl;
|
||||||
for(int i = 0; i < cities.size(); i++){
|
|
||||||
std::cout << cities[i].GetName() << " ";
|
|
||||||
}
|
|
||||||
std::cout << std::endl;
|
|
||||||
costs = MakePermutationMatrix::GetLowestCost(cities, rank, size, costMatrix);
|
costs = MakePermutationMatrix::GetLowestCost(cities, rank, size, costMatrix);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user