aboutsummaryrefslogtreecommitdiff
path: root/src/OutputInfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/OutputInfo.c')
-rw-r--r--src/OutputInfo.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/OutputInfo.c b/src/OutputInfo.c
index 071f1a8..5bc12b1 100644
--- a/src/OutputInfo.c
+++ b/src/OutputInfo.c
@@ -28,21 +28,21 @@ CCTK_FILEVERSION(CactusBase_IOBasic_OutputInfo_c)
/* #define IOBASIC_DEBUG 1 */
/* the number at which to switch from decimal to exponential notation */
-#define DECIMAL_PRECISION 1.0e-8
-#define DECIMAL_TOOBIG 1.0e+8
-#define USE_DECIMAL_NOTATION(x) ((fabs ((double) x) > DECIMAL_PRECISION) || \
- ((x) == 0.0) || \
- (fabs ((double) x) < DECIMAL_TOOBIG))
+#define DECIMAL_SMALLEST 1.0e-8
+#define DECIMAL_TOOBIG 1.0e+3
+#define USE_DECIMAL_NOTATION(x) ((x) == 0.0 || \
+ (fabs ((double) x) >= DECIMAL_SMALLEST && \
+ fabs ((double) x) < DECIMAL_TOOBIG))
#define PRINT_FORMATTED_REDUCTION_VALUE(reduction) \
if (reduction->is_valid) \
{ \
if (USE_DECIMAL_NOTATION (reduction->value)) \
{ \
- printf ("%13.8f |", reduction->value); \
+ printf ("% 13.8f |", reduction->value); \
} \
else \
{ \
- printf ("%11.6e |", reduction->value); \
+ printf ("% 11.6e |", reduction->value); \
} \
} \
else \