fixed delete bug
git-svn-id: svn://anubis/gvsu@305 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
parent
45d41d04ae
commit
266af54f7b
@ -121,7 +121,7 @@ int main(int argc, char * argv[])
|
|||||||
if (processes_lowest_costs[i] < processes_lowest_costs[min_process])
|
if (processes_lowest_costs[i] < processes_lowest_costs[min_process])
|
||||||
min_process = i;
|
min_process = i;
|
||||||
}
|
}
|
||||||
cout << endl;
|
cout << endl << endl;
|
||||||
}
|
}
|
||||||
MPI_Bcast(&min_process, 1, MPI_INT, 0, MPI_COMM_WORLD);
|
MPI_Bcast(&min_process, 1, MPI_INT, 0, MPI_COMM_WORLD);
|
||||||
if (my_rank == min_process)
|
if (my_rank == min_process)
|
||||||
@ -157,9 +157,9 @@ void evalPermutation(int * array)
|
|||||||
lowest_cost_tree = tree;
|
lowest_cost_tree = tree;
|
||||||
save_tree = true;
|
save_tree = true;
|
||||||
}
|
}
|
||||||
|
if (!save_tree)
|
||||||
|
delete tree;
|
||||||
}
|
}
|
||||||
if (!save_tree)
|
|
||||||
delete tree;
|
|
||||||
invocation++;
|
invocation++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user