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++; }