From 66ae71be5a36dd870727b7f7b7a4e7e101460370 Mon Sep 17 00:00:00 2001 From: bbod Date: Mon, 30 Mar 2020 21:38:41 -0600 Subject: [PATCH] Auto Commit --- HW10/MakePermutationMatrix.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/HW10/MakePermutationMatrix.cpp b/HW10/MakePermutationMatrix.cpp index 3b94aeb..914c3fb 100644 --- a/HW10/MakePermutationMatrix.cpp +++ b/HW10/MakePermutationMatrix.cpp @@ -35,6 +35,9 @@ std::vector MakePermutationMatrix::MakePermutation(std::vector sou std::cout << nextPerm[i].GetName() << " "; } std::cout << std::endl; + if(rank == size-1){ + nextPerm = source; + } do { double cost = 0; //Add up the cost of the current permutation.