This commit is contained in:
2020-03-29 21:16:31 -06:00
parent 9ae0275ffc
commit 0f42bf8ecc

View File

@@ -38,9 +38,9 @@ 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 <<"Flat Matrix Size :" << flatMatrix.size() << std::endl;
for(int i = 0; i < citiesSize*citiesSize; i++){
std::cout << flatMatrix[i] << " ";
}