diff options
author | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2002-07-08 13:50:41 +0000 |
---|---|---|
committer | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2002-07-08 13:50:41 +0000 |
commit | d7f9c48e97fef4ee571f0e5ae5b493cce36bc981 (patch) | |
tree | 732084cdacf276b244c95dcc289cc850c2329310 | |
parent | 850deade3f621fd10dee5e3e24a2bff4575f3ddd (diff) |
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
-rw-r--r-- | src/patch/coords.cc | 6 | ||||
-rw-r--r-- | src/patch/coords.hh | 1 | ||||
-rw-r--r-- | src/patch/fd_grid.cc | 6 | ||||
-rw-r--r-- | src/patch/fd_grid.hh | 4 |
4 files changed, 16 insertions, 1 deletions
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 <assert.h> #include <limits.h> +#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: // <math.h> +// "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 <assert.h> #include <math.h> +#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 |