aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/patch/coords.cc6
-rw-r--r--src/patch/coords.hh1
-rw-r--r--src/patch/fd_grid.cc6
-rw-r--r--src/patch/fd_grid.hh4
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