Support CCTK_REAL4 in AHFinderDirect

Create issue
Issue #846 closed
Erik Schnetter created an issue

Index: src/include/config.h =================================================================== --- src/include/config.h (revision 1563) +++ src/include/config.h (working copy) @@ -54,8 +54,15 @@ * FIXME: this assumes fp == C 'double' * CCTK_REAL_PRECISION_{4,8,16} are helpful, but not quite enough) */ +#include <cctk.h> #undef FP_IS_FLOAT +#undef FP_IS_DOUBLE +#ifdef CCTK_REAL_PRECISION_4 +#define FP_IS_FLOAT +#endif +#ifdef CCTK_REAL_PRECISION_8 #define FP_IS_DOUBLE +#endif

 #if   defined(FP_IS_FLOAT)
 #define FP_SCANF_FORMAT "%f"


Comments (7)

  1. Frank Löffler
    • removed comment

    Wouldn't this patch invalidate the comment directly above it? Otherwise it looks ok to apply, but I didn't test. I don't have a configuration using CCTK_REAL4 for testing right now.

  2. Erik Schnetter reporter
    • removed comment

    The code still doesn't test whether a CCTK_REAL8 is really a double, hence the comment remains valid. Of course, this is only of theoretical interest, since it would be very strange to have a machine where a double does not use 8 bytes.

  3. Log in to comment