diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2009-12-02 14:35:07 -0800 |
---|---|---|
committer | Barry Wardell <barry.wardell@gmail.com> | 2011-12-14 16:45:19 +0000 |
commit | 7c3d49426e1dc59d9e671dd865cafaea48add592 (patch) | |
tree | 4815f42e4686ebb114d9237f84aeebc845afe1b4 /Carpet/CarpetIOHDF5/src/CarpetIOHDF5.cc | |
parent | b43e98916a1ac039275712f243a5223d6a820c3d (diff) |
CarpetIOHDF5: Increase output accuracy for time hierarchy
Serialise the time hierarchy with 17 digits of accuracy, instead of
the standard 6 digits. This is required for correctly recovering the
time hierarchy.
Diffstat (limited to 'Carpet/CarpetIOHDF5/src/CarpetIOHDF5.cc')
-rw-r--r-- | Carpet/CarpetIOHDF5/src/CarpetIOHDF5.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Carpet/CarpetIOHDF5/src/CarpetIOHDF5.cc b/Carpet/CarpetIOHDF5/src/CarpetIOHDF5.cc index c91cd8f3b..a139cea7e 100644 --- a/Carpet/CarpetIOHDF5/src/CarpetIOHDF5.cc +++ b/Carpet/CarpetIOHDF5/src/CarpetIOHDF5.cc @@ -3,6 +3,7 @@ #include <cstddef> #include <cstdlib> #include <cstring> +#include <iomanip> #include <map> #include <sstream> #include <string> @@ -1181,6 +1182,7 @@ int WriteMetadata (const cGH * const cctkGH, int const nioprocs, } } ostringstream gs_buf; + gs_buf << setprecision(17); // We could write this information only into one of the checkpoint // files (to save space), or write it into a separate metadata // file |