aboutsummaryrefslogtreecommitdiff
path: root/src/patch/test_patch_system.cc
diff options
context:
space:
mode:
authorjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2001-09-12 11:34:15 +0000
committerjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2001-09-12 11:34:15 +0000
commit6782b8eec1c3f692b9d8b5fbe6a448536215b415 (patch)
tree181fb6dde36874ef83ab4189bafc29a0d0b3af42 /src/patch/test_patch_system.cc
parent906af66cbd514e2a5805a2f4ebd6fc1dde26976e (diff)
move global gfn variables into main::
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@307 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'src/patch/test_patch_system.cc')
-rw-r--r--src/patch/test_patch_system.cc19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/patch/test_patch_system.cc b/src/patch/test_patch_system.cc
index 6d96200..8e79c5d 100644
--- a/src/patch/test_patch_system.cc
+++ b/src/patch/test_patch_system.cc
@@ -29,8 +29,6 @@
#include "jt/linear_map.hh"
#include "jt/interpolate.hh"
-using jtutil::error_exit;
-
#include "fp.hh"
#include "coords.hh"
#include "grid.hh"
@@ -41,6 +39,8 @@ using jtutil::error_exit;
#include "patch_frontier.hh"
#include "patch_system.hh"
+using jtutil::error_exit;
+
//******************************************************************************
//
@@ -68,14 +68,6 @@ static const fp deriv_weight_fn = 3.1,
deriv_weight_rho_sigma = 5.3,
deriv_weight_sigma_sigma = 5.8;
-// what gridfns will we use
-static const int N_gridfns = 4;
-static const int gfn_fn = 0; // common to all tests
-static const int gfn_ghosted_fn = 1; // for ghost-zone setup tests
-static const int gfn_deriv_fd = 1; // for finite diff tests
-static const int gfn_deriv_analytic = 2; // for finite diff tests
-static const int gfn_error = 3; // for finite diff tests
-
//******************************************************************************
//
@@ -253,6 +245,13 @@ default:
}
printf("## creating patch_system...\n");
+// what gridfns will we use
+static const int N_gridfns = 4;
+static const int gfn_fn = 0; // common to all tests
+static const int gfn_ghosted_fn = 1; // for ghost-zone setup tests
+static const int gfn_deriv_fd = 1; // for finite diff tests
+static const int gfn_deriv_analytic = 2; // for finite diff tests
+static const int gfn_error = 3; // for finite diff tests
patch_system ps(origin_x, origin_y, origin_z,
type,
N_ghost_points, N_overlap_points, delta_drho_dsigma,