test
This commit is contained in:
@@ -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] << " ";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user