From 266af54f7b91fa695f429af2be81a282077d51bd Mon Sep 17 00:00:00 2001 From: josh Date: Mon, 1 Dec 2008 00:16:48 +0000 Subject: [PATCH] fixed delete bug git-svn-id: svn://anubis/gvsu@305 45c1a28c-8058-47b2-ae61-ca45b979098e --- cs677/pa4/maximum-parsimony.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cs677/pa4/maximum-parsimony.cc b/cs677/pa4/maximum-parsimony.cc index 9743e61..70b4934 100644 --- a/cs677/pa4/maximum-parsimony.cc +++ b/cs677/pa4/maximum-parsimony.cc @@ -121,7 +121,7 @@ int main(int argc, char * argv[]) if (processes_lowest_costs[i] < processes_lowest_costs[min_process]) min_process = i; } - cout << endl; + cout << endl << endl; } MPI_Bcast(&min_process, 1, MPI_INT, 0, MPI_COMM_WORLD); if (my_rank == min_process) @@ -157,9 +157,9 @@ void evalPermutation(int * array) lowest_cost_tree = tree; save_tree = true; } + if (!save_tree) + delete tree; } - if (!save_tree) - delete tree; invocation++; }