diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2008-10-23 11:58:46 +0200 |
---|---|---|
committer | Erik Schnetter <schnetter@cct.lsu.edu> | 2008-10-24 15:26:25 +0200 |
commit | 70680a9c327dbd5ccf3b09de91eb1589c7a25142 (patch) | |
tree | 75fd169966ee842ff8b4f0d5a19380ef2616aae0 | |
parent | f51c1ae0a2783941aa3ffc65422a3c864015aae3 (diff) |
Carpet: Flush stdout and stderr after outputting grid statistics
-rw-r--r-- | Carpet/Carpet/src/Recompose.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Carpet/Carpet/src/Recompose.cc b/Carpet/Carpet/src/Recompose.cc index 62e6c6e43..958a5d058 100644 --- a/Carpet/Carpet/src/Recompose.cc +++ b/Carpet/Carpet/src/Recompose.cc @@ -1,6 +1,7 @@ #include <algorithm> #include <cassert> #include <cmath> +#include <cstdio> #include <cstdlib> #include <cstring> #include <fstream> @@ -861,6 +862,12 @@ namespace Carpet { double (num_active_array_points / 1000000), double (num_total_array_points / 1000000), double (num_total_array_points / num_active_array_points * 100 - 100)); + + // After this, we will begin to allocate memory for the grid + // structure. If we run out of memory, ensure that this output + // still makes it to disk. + fflush (stdout); + fflush (stderr); } |