diff --git a/HW10/main.cpp b/HW10/main.cpp index 93053fc..cddec49 100644 --- a/HW10/main.cpp +++ b/HW10/main.cpp @@ -16,7 +16,7 @@ int main(int argc, char* argv[]) std::vector> costMatrix; std::vector cities; std::vector flatMatrix; - std::vector serializedCity; + std::vector serializedCity; if (rank == 0) { std::cout << "Reading in file" << std::endl; cities = ReadFromFile::ReadFile("../input"); @@ -56,7 +56,7 @@ int main(int argc, char* argv[]) } MPI_Bcast(&flatMatrix[0], flatMatrix.size(), MPI_DOUBLE, 0, MPI_COMM_WORLD); - MPI_Bcast(&serializedCity[0], citiesSize*3, MPI_DOUBLE, 0, MPI_COMM_WORLD); + MPI_Bcast(&serializedCity[0], citiesSize*3, MPI_INT, 0, MPI_COMM_WORLD); std::vector costs; if(rank){