fixed delete bug

git-svn-id: svn://anubis/gvsu@305 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
josh 2008-12-01 00:16:48 +00:00
parent 45d41d04ae
commit 266af54f7b

View File

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