aboutsummaryrefslogtreecommitdiff
path: root/src/patch/patch_system.hh
diff options
context:
space:
mode:
authorjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2001-07-15 16:12:03 +0000
committerjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2001-07-15 16:12:03 +0000
commit045044b8b93d52a58721b1b12ab1bbfe61c2a225 (patch)
tree5d087cd31c2176740696b4fd85bd841d59250598 /src/patch/patch_system.hh
parent0284b5c5d349405ad7dfb0f81feded047f5a5d22 (diff)
finish first draft of new "smart" patch sysstem setup for full & half
patch systems git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@164 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'src/patch/patch_system.hh')
-rw-r--r--src/patch/patch_system.hh38
1 files changed, 30 insertions, 8 deletions
diff --git a/src/patch/patch_system.hh b/src/patch/patch_system.hh
index 6e76576..2e80bcc 100644
--- a/src/patch/patch_system.hh
+++ b/src/patch/patch_system.hh
@@ -1,6 +1,8 @@
// patch_system.hh -- describes the (an) entire system of interlinked patches
// $Id$
//
+// patch_system_info - static data on patch numbers/bounds/etc for patch system
+//
// patch_system - describes a system of interlinked patches
//
@@ -23,25 +25,45 @@
//
//******************************************************************************
+//******************************************************************************
+//******************************************************************************
//
// ***** patch numbers, bounds, etc (static data) *****
//
namespace patch_system_info
{
+// largest number of patches for any patch system type
+static const int max_N_patches = 6;
//
-// alas, the set of patches for a quarter patch system isn't
-// a subset of the set of patches for a half patch system,
-// so we can't assign the same patch numbers to a given patch
-// type in each type of patch system, and still keep each
-// patch system having a contiguous range of patch numbers :(
+// Alas, we can't assign the same patch numbers to a given patch type
+// in each type of patch system, and still keep each patch system having
+// a contiguous range of patch numbers. (For example, the set of patches
+// for a quarter patch system isn't a subset of the set of patches for
+// a half patch system.)
+//
+
//
+// this (POD, and hence static-initializable) struct holds the constructor
+// arguments which in practice vary from patch to patch
struct patch_info
{
int patch_number;
fp min_drho, max_drho;
fp min_dsigma, max_dsigma;
+
+ // compute and return reference to struct grid_arrays::array_pars
+ // from the info in this struct
+ // ... result refers to internal static buffer;
+ // the usual caveats about lifetimes/overwriting apply
+ const grid_arrays::array_pars& grid_array_pars();
+
+ // compute and return reference to struct grid::grid_pars
+ // from the info in this struct
+ // ... result refers to internal static buffer;
+ // the usual caveats about lifetimes/overwriting apply
+ const grid::grid_pars& grid_pars();
};
//
@@ -137,7 +159,9 @@ static const struct patch_info plus_y = {2, 45.0, 90.0, 45.0, 90.0};
// close namespace patch_system_info::
};
-//*****************************************************************************
+//******************************************************************************
+//******************************************************************************
+//******************************************************************************
//
// a patch_system object describes a system of interlinked patches.
@@ -166,8 +190,6 @@ public:
static
const char *name_of_type(enum patch_system_type type);
- // largest number of patches for any patch system type
- static const int max_N_patches = 6;
public:
//