aboutsummaryrefslogtreecommitdiff
path: root/src/patch/fd_grid.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/patch/fd_grid.hh')
-rw-r--r--src/patch/fd_grid.hh31
1 files changed, 21 insertions, 10 deletions
diff --git a/src/patch/fd_grid.hh b/src/patch/fd_grid.hh
index 78ae6b6..b0d6307 100644
--- a/src/patch/fd_grid.hh
+++ b/src/patch/fd_grid.hh
@@ -370,6 +370,23 @@ class fd_grid
: public grid
{
//
+ // molecule sizes
+ //
+public:
+ // n.b. this interface implicitly assumes that all molecules
+ // are centered and are the same order and size
+ static
+ int finite_diff_order() { return FINITE_DIFF_ORDER; }
+ static
+ int molecule_radius() { return FD_GRID__MOL_RADIUS; }
+ static
+ int molecule_diameter() { return FD_GRID__MOL_DIAMETER; }
+ static
+ int molecule_min_m() { return -FD_GRID__MOL_RADIUS; }
+ static
+ int molecule_max_m() { return FD_GRID__MOL_RADIUS; }
+
+ //
// helper functions to compute (irho,isigma) + [m]
// along each axis
//
@@ -435,19 +452,11 @@ public:
rho_axis__isigma_plus_m);
}
+
//
- // ***** molecule orders, sizes, and coefficients *****
+ // ***** molecule coefficients *****
//
public:
-
- // n.b. this interface implicitly assumes that all molecules
- // 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
// are position-independent
@@ -471,6 +480,7 @@ private:
static
fp dxx_coeff(int m);
+
//
// ***** constructor, destructor *****
//
@@ -483,6 +493,7 @@ public:
{ }
// compiler-generated default destructor is ok
+
private:
// we forbid copying and passing by value
// by declaring the copy constructor and assignment operator