[ET Trac] [Einstein Toolkit] #846: Support CCTK_REAL4 in AHFinderDirect
Einstein Toolkit
trac-noreply at einsteintoolkit.org
Tue May 1 10:59:06 CDT 2012
#846: Support CCTK_REAL4 in AHFinderDirect
-----------------------------------+----------------------------------------
Reporter: eschnett | Owner:
Type: enhancement | Status: new
Priority: minor | Milestone:
Component: EinsteinToolkit thorn | Version:
Keywords: |
-----------------------------------+----------------------------------------
{{{
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"
}}}
--
Ticket URL: <https://trac.einsteintoolkit.org/ticket/846>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit
More information about the Trac
mailing list