This commit is contained in:
2020-03-29 20:20:57 -06:00
parent 3fda9b89c0
commit 45f960649b

View File

@@ -41,8 +41,8 @@ int main(int argc, char* argv[])
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 << "after unflatten" << std::endl;
std::cout << "Process "<< rank << " has value " << citiesSize << " as size of city" << std::endl;
for(int i = 0; i < citiesSize; i++) {
for (int j = 0; j < citiesSize; j++) {