aboutsummaryrefslogtreecommitdiff
path: root/Carpet
diff options
context:
space:
mode:
authorschnetter <>2004-04-18 11:04:00 +0000
committerschnetter <>2004-04-18 11:04:00 +0000
commitabe5824e5ebba883098568ed48fe48a358243d99 (patch)
tree0553aad820dc612161c73bb323419bf5b3229494 /Carpet
parent5215c601e44097e207dac6da688abfd8403b72d0 (diff)
Format error message nicely.
darcs-hash:20040418110408-07bb3-0a871795414c96c78eb3e5d123044044de61dc91.gz
Diffstat (limited to 'Carpet')
-rw-r--r--Carpet/CarpetLib/src/data.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/Carpet/CarpetLib/src/data.cc b/Carpet/CarpetLib/src/data.cc
index 7eee3d45f..3c46856a2 100644
--- a/Carpet/CarpetLib/src/data.cc
+++ b/Carpet/CarpetLib/src/data.cc
@@ -1,4 +1,4 @@
-// $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/data.cc,v 1.52 2004/04/13 11:13:49 schnetter Exp $
+// $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/data.cc,v 1.53 2004/04/18 13:04:08 schnetter Exp $
#include <assert.h>
#include <limits.h>
@@ -93,7 +93,7 @@ void data<T,D>::getmem (const size_t nelems)
} catch (...) {
T Tdummy;
CCTK_VWarn (0, __LINE__, __FILE__, CCTK_THORNSTRING,
- "Failed to allocate %f bytes (%.3f MB) of memory for type %s. %f bytes (%.3f MB) are currently allocated.",
+ "Failed to allocate %.0f bytes (%.3f MB) of memory for type %s. %.0f bytes (%.3f MB) are currently allocated.",
(double)nbytes, nbytes/1.0e6,
typestring(Tdummy),
(double)total_allocated_bytes, total_allocated_bytes/1.0e6);