diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2008-10-24 15:26:25 +0200 |
---|---|---|
committer | Erik Schnetter <schnetter@cct.lsu.edu> | 2008-10-24 15:26:25 +0200 |
commit | 2626e1b6767feb53db96914d908822a1e64309c2 (patch) | |
tree | ce034f133aee3748a0eefc58f73cf41bd1b7eb5a /Carpet/Carpet/src/Recompose.cc | |
parent | c8e3bd7706426058bbe05fd6c8af7af0007e68b0 (diff) |
Carpet: Flush stdout and stderr after outputting grid statistics
Diffstat (limited to 'Carpet/Carpet/src/Recompose.cc')
-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); } |