aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2002-09-20 16:06:48 +0000
committerjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2002-09-20 16:06:48 +0000
commit6d42c1ece21804916e8150ea9c43fbc3317a5715 (patch)
tree687f0f09a6f30e85253838f33565cf5ec3746047 /src/include
parent2256e62a862341e1c721320d69876c083e08ca99 (diff)
* remove space before #define to work around a Cactus preprocessor bug
* convert to C-style comments * move typedefs into #ifdef CCODE ==> can now be #included by Fortran code too git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@756 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'src/include')
-rw-r--r--src/include/config.hh74
1 files changed, 50 insertions, 24 deletions
diff --git a/src/include/config.hh b/src/include/config.hh
index d1dd414..09ed4a3 100644
--- a/src/include/config.hh
+++ b/src/include/config.hh
@@ -1,43 +1,69 @@
-// config.hh -- compile-time configuration for AHFinderDirect
-// $Header$
+/* config.hh -- compile-time configuration for AHFinderDirect */
+/* $Header$ */
-//
-// prerequisites:
-// "cctk.h" or "fake_cctk.h"
-//
+/*
+ * This header file is #included by C++ and C files, and also by
+ * Fortran 77 files which are run through a C-like preprocessor. Alas,
+ * due to a Cactus bug, this means that all preprocessor commands in
+ * Fortran sections of this file, must start in column 1. :( :(
+ *
+ * FIXME: should rename this to "config.h"
+ */
+/*
+ * prerequisites:
+ * "cctk.h" or "fake_cctk.h"
+ */
+
+/******************************************************************************/
+
+/*
+ * definitions for C/C++ only
+ */
+
+#ifdef CCODE
typedef CCTK_REAL fp;
-// Fortran 'integer' type
+/* Fortran 'integer' type */
typedef CCTK_INT integer;
+#endif /* CCODE */
+
+/******************************************************************************/
+
+/*
+ * definitions for C++, C, and Fortran
+ */
-// FIXME: this assumes fp == C 'double'
-// (CCTK_REAL_PRECISION_{4,8,16} are helpful, but not quite enough)
+/*
+ * FIXME: this assumes fp == C 'double'
+ * CCTK_REAL_PRECISION_{4,8,16} are helpful, but not quite enough)
+ */
#undef FP_IS_FLOAT
#define FP_IS_DOUBLE
#if defined(FP_IS_FLOAT)
- #define FP_SCANF_FORMAT "%f"
+#define FP_SCANF_FORMAT "%f"
#elif defined(FP_IS_DOUBLE)
- #define FP_SCANF_FORMAT "%lf"
+#define FP_SCANF_FORMAT "%lf"
#else
- #error "don't know fp datatype!"
+#error "don't know fp datatype!"
#endif
-//
-// The angular finite differencing in our multipatch system can be
-// either 2nd order or 4th order, configurable here.
-//
+/*
+ * The angular finite differencing in our multipatch system can be
+ * either 2nd order or 4th order, configurable here.
+ */
#ifdef FINITE_DIFF_ORDER
- // someone (probably a Makefile) has already defined this ==> leave it alone
+/* someone (probably a Makefile) has already defined this */
+/* ==> leave it alone */
#else
- #define FINITE_DIFF_ORDER 4
+#define FINITE_DIFF_ORDER 4
#endif
-//
-// What types of Jacobian matrix storage do we want to compile in
-// support for? N.b. each of these requires linking with the corresponding
-// linear-solver library; see "../make.configuration.defn" for details
-// on these libraries.
-//
+/*
+ * What types of Jacobian matrix storage do we want to compile in
+ * support for? N.b. each of these requires linking with the corresponding
+ * linear-solver library; see "../make.configuration.defn" for details
+ * on these libraries.
+ */
#define HAVE_DENSE_JACOBIAN