aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2002-07-29 15:17:03 +0000
committerjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2002-07-29 15:17:03 +0000
commit96b02268829af3d1c4966d48883367c330849f25 (patch)
treee2d3358d0501019fff6048e78f7708a2143b393d /src/include
parentd5842d155c7762a82cf5c8c75b7976a52fdaee10 (diff)
merge in changes from laptop:
- add support for condition number estimating when solving linear system - cleanup Schw/EF analytic geometry option - add option to dump h and H at each Newton iteration for debuggin git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@669 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'src/include')
-rw-r--r--src/include/config.hh9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/include/config.hh b/src/include/config.hh
index 6cf3693..2729a62 100644
--- a/src/include/config.hh
+++ b/src/include/config.hh
@@ -15,7 +15,14 @@ typedef CCTK_INT integer;
// (CCTK_REAL_PRECISION_{4,8,16} are helpful, but not quite enough)
#undef FP_IS_FLOAT
#define FP_IS_DOUBLE
-#define FP_SCANF_FORMAT "%lf"
+
+#if defined(FP_IS_FLOAT)
+ #define FP_SCANF_FORMAT "%f"
+#elif defined(FP_IS_DOUBLE)
+ #define FP_SCANF_FORMAT "%lf"
+#else
+ #error "don't know fp datatype!"
+#endif
//
// The angular finite differencing in our multipatch system can be