diff options
author | Erik Schnetter <schnetter@aei.mpg.de> | 2005-04-11 17:06:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@aei.mpg.de> | 2005-04-11 17:06:00 +0000 |
commit | 5512709cdc6d665def4da26f29320da391ef5e35 (patch) | |
tree | 98e1c271fb7789c679223211f21af63c1f620571 /Carpet/CarpetIOHDF5/src/Output.cc | |
parent | bad7554c13f61e9a012e47bdc1ff9b8ba8dd7572 (diff) |
CarpetIOHDF5: Use CCTK_REAL instead of double for meta data
Use the type CCTK_REAL instead of double for storing meta data in the
HDF5 files. This is necessary if CCTK_REAL has more precision than
double.
darcs-hash:20050411170627-891bb-374e4c2581155d825f9a1925b1d4319051bc36d6.gz
Diffstat (limited to 'Carpet/CarpetIOHDF5/src/Output.cc')
-rw-r--r-- | Carpet/CarpetIOHDF5/src/Output.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Carpet/CarpetIOHDF5/src/Output.cc b/Carpet/CarpetIOHDF5/src/Output.cc index d77c27ee7..e66e17104 100644 --- a/Carpet/CarpetIOHDF5/src/Output.cc +++ b/Carpet/CarpetIOHDF5/src/Output.cc @@ -938,7 +938,7 @@ static int WarnAboutDeprecatedParameters (void) { CCTK_WARN (2, "Parameter 'IOHDF5::out3D_dt' is deprecated, please use " "'IOHDF5::out_dt' instead"); - snprintf (buffer, sizeof (buffer), "%f", out3D_dt); + snprintf (buffer, sizeof (buffer), "%f", (double)out3D_dt); CCTK_ParameterSet ("out_dt", CCTK_THORNSTRING, buffer); warnings++; } |