From 890b73d3948b8b6edb433bd7ad59e7765a09785c Mon Sep 17 00:00:00 2001 From: bbod Date: Mon, 30 Mar 2020 18:00:56 -0600 Subject: [PATCH] Auto Commit --- HW10/MakePermutationMatrix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HW10/MakePermutationMatrix.cpp b/HW10/MakePermutationMatrix.cpp index b1edefb..b19ee3d 100644 --- a/HW10/MakePermutationMatrix.cpp +++ b/HW10/MakePermutationMatrix.cpp @@ -21,7 +21,7 @@ std::vector MakePermutationMatrix::MakePermutation(std::vector sou totalNumPermutations *= i; offset = totalNumPermutations/size; } - MPI_Bcast(&offset, 1, MPI_DOUBLE, 0, MPI_COMM_WORLD); + MPI_Bcast(&offset, 1, MPI_INT, 0, MPI_COMM_WORLD); //return vector should be the size of number of processors as they are going to only return their own smallest.