diff --git a/examples/main.c b/examples/main.c
index 7dcfee85478235e48351f7b8f9cf973cf5f0fda4..c2d3e3b8b926b72b0e24519da87e4139657b0bfb 100644
--- a/examples/main.c
+++ b/examples/main.c
@@ -335,6 +335,8 @@ int main(int argc, char *argv[]) {
   char ICfileName[200] = "";
   parser_get_param_string(params, "InitialConditions:file_name", ICfileName);
   if (myrank == 0) message("Reading ICs from file '%s'", ICfileName);
+  fflush(stdout);
+
   struct part *parts = NULL;
   struct gpart *gparts = NULL;
   size_t Ngas = 0, Ngpart = 0;