t
This commit is contained in:
@@ -38,8 +38,10 @@ int main(int argc, char* argv[])
|
||||
matrix[i].resize(citiesSize);
|
||||
}
|
||||
}
|
||||
std::cout << "before bcast" << std::endl;
|
||||
MPI_Bcast(&flatMatrix, flatMatrix.size(), MPI_DOUBLE, 0, MPI_COMM_WORLD);
|
||||
if(rank){
|
||||
std::cout << "after bcast" << std::endl;
|
||||
matrix = matrixTools::UnflattenMatrix(flatMatrix, citiesSize, citiesSize);
|
||||
std::cout << "Process "<< rank << " has value " << citiesSize << " as size of city" << std::endl;
|
||||
for(int i = 0; i < citiesSize; i++) {
|
||||
|
||||
Reference in New Issue
Block a user