more robust failure logic

git-svn-id: svn://anubis/gvsu@318 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
josh 2008-12-06 20:23:33 +00:00
parent 226c88774d
commit de91797a58

View File

@ -32,9 +32,8 @@ int main(int argc, char * argv[])
if (my_rank == 0) if (my_rank == 0)
{ {
bool window_success = createWindow(width, height, &screen, &pixels); bool window_success = createWindow(width, height, &screen, &pixels);
if (!window_success) if (window_success)
return -1; {
for (int y = 0; y < height; y++) for (int y = 0; y < height; y++)
{ {
for (int x = 0; x < width; x++) for (int x = 0; x < width; x++)
@ -61,6 +60,7 @@ int main(int argc, char * argv[])
} }
} }
} }
}
MPI_Finalize(); MPI_Finalize();