From d7f9c48e97fef4ee571f0e5ae5b493cce36bc981 Mon Sep 17 00:00:00 2001 From: jthorn Date: Mon, 8 Jul 2002 13:50:41 +0000 Subject: note new "fake_cctk.h" and use it in standalone test builds git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@611 f88db872-0e4f-0410-b76b-b9085cfa78c5 --- src/patch/coords.cc | 6 ++++++ src/patch/coords.hh | 1 + src/patch/fd_grid.cc | 6 ++++++ src/patch/fd_grid.hh | 4 +++- 4 files changed, 16 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/patch/coords.cc b/src/patch/coords.cc index b529a1c..a39ba2a 100644 --- a/src/patch/coords.cc +++ b/src/patch/coords.cc @@ -23,6 +23,12 @@ #include #include +#ifdef STANDALONE_TEST + #include "fake_cctk.h" +#else + #include "cctk.h" +#endif + #include "stdc.h" #include "config.hh" #include "../jtutil/util.hh" diff --git a/src/patch/coords.hh b/src/patch/coords.hh index 8543f9c..7ebc49e 100644 --- a/src/patch/coords.hh +++ b/src/patch/coords.hh @@ -10,6 +10,7 @@ // // prerequisites: // +// "cctk.h" or "fake_cctk.h" // "stdc.h" // "config.hh" // "../jtutil/util.hh" diff --git a/src/patch/fd_grid.cc b/src/patch/fd_grid.cc index d0ca181..5719316 100644 --- a/src/patch/fd_grid.cc +++ b/src/patch/fd_grid.cc @@ -9,6 +9,12 @@ #include #include +#ifdef STANDALONE_TEST + #include "fake_cctk.h" +#else + #include "cctk.h" +#endif + #include "stdc.h" #include "config.hh" #include "../jtutil/util.hh" diff --git a/src/patch/fd_grid.hh b/src/patch/fd_grid.hh index 697def4..d0f511e 100644 --- a/src/patch/fd_grid.hh +++ b/src/patch/fd_grid.hh @@ -441,10 +441,12 @@ public: public: // n.b. this interface implicitly assumes that all molecules - // are the same order and size + // are centered and are the same order and size int finite_diff_order() const { return FINITE_DIFF_ORDER; } int molecule_radius() const { return FD_GRID__MOL_RADIUS; } int molecule_diameter() const { return FD_GRID__MOL_DIAMETER; } + int molecule_min_m() const { return -FD_GRID__MOL_RADIUS; } + int molecule_max_m() const { return FD_GRID__MOL_RADIUS; } // molecule coefficients // n.b. this interface implicitly assumes that all molecules -- cgit v1.2.3