Commit 9cecefcd authored by Leonardo Solis's avatar Leonardo Solis
Browse files

issue #53, added minor improvement on stdout messages

parent 3279cc66
......@@ -603,6 +603,14 @@ gradient_minAD(
printf("%s\n", "NO energy improvement!");
if (get_local_id(0) == 0) {
// Only added for correct printing
// "energies" values are only consumed in the other if-else branch
energy = best_energy;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment