From 7100fc68fb313e1c75cd3e6d4e2f0fcaddc76448 Mon Sep 17 00:00:00 2001 From: bbod Date: Mon, 30 Mar 2020 12:34:53 -0600 Subject: [PATCH] Auto Commit --- HW10/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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){