aboutsummaryrefslogtreecommitdiff
path: root/src/patch
diff options
context:
space:
mode:
authorjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2002-10-28 16:10:51 +0000
committerjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2002-10-28 16:10:51 +0000
commit394a4db2135324bb61f53940ab4c4801552c50ce (patch)
tree68a4b044f27c5f9bb6da27be1a09ad4b5fac7307 /src/patch
parent9e9a76fe8675a45396fcb07f3fb8e65a19b48ed4 (diff)
add new patch system types to handle mirrored octant/quadrant cases,
also rename some existing ones to make them consistent git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@867 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'src/patch')
-rw-r--r--src/patch/patch_system_info.hh61
1 files changed, 51 insertions, 10 deletions
diff --git a/src/patch/patch_system_info.hh b/src/patch/patch_system_info.hh
index ef4eb9f..6295e68 100644
--- a/src/patch/patch_system_info.hh
+++ b/src/patch/patch_system_info.hh
@@ -75,9 +75,32 @@ namespace plus_z_hemisphere
//
// +[xy] "vertical" quarter-grid (quadrant) patch system
+// ... mirror symmetry across x=0 and y=0 planes
+//
+namespace plus_xy_quadrant_mirrored
+ {
+ static const struct patch_info patch_info_array[]
+ = {
+// +z patch (45 x 45 degrees): dmu [ 0, 45], dnu [ 0, 45]
+ {"+z", patch::patch_is_plus, 'z', 0.0, 45.0, 0.0, 45.0},
+
+// +x patch (90 x 45 degrees): dnu [ 45, 135], dphi [ 0, 45]
+ {"+x", patch::patch_is_plus, 'x', 45.0, 135.0, 0.0, 45.0},
+
+// +y patch (90 x 45 degrees): dmu [ 45, 135], dphi [ 45, 90]
+ {"+y", patch::patch_is_plus, 'y', 45.0, 135.0, 45.0, 90.0},
+
+// -z patch (45 x 45 degrees): dmu [ 135, 180], dnu [ 135, 180]
+ {"-z", patch::patch_is_minus, 'z', 135.0, 180.0, 135.0, 180.0},
+ };
+ static const int N_patches = sizeof(patch_info_array) / sizeof(patch_info);
+ } // namespace patch_system_info::plus_xy_quadrant_mirrored
+
+//
+// +[xy] "vertical" quarter-grid (quadrant) patch system
// ... 90 degree periodic rotation symmetry about z axis
//
-namespace plus_xy_quadrant
+namespace plus_xy_quadrant_rotating
{
static const struct patch_info patch_info_array[]
= {
@@ -94,14 +117,14 @@ namespace plus_xy_quadrant
{"-z", patch::patch_is_minus, 'z', 135.0, 180.0, 135.0, 180.0},
};
static const int N_patches = sizeof(patch_info_array) / sizeof(patch_info);
- } // namespace patch_system_info::plus_xy_quadrant
+ } // namespace patch_system_info::plus_xy_quadrant_rotating
//
// +[xz] "horizontal" quarter-grid (quadrant) patch system
-// ... mirror symmetry across z=0 plane,
-// 180 degree periodic rotation symmetry about z axis
+// ... 180 degree periodic rotation symmetry about z axis,
+// mirror symmetry across z=0 plane
//
-namespace plus_xz_quadrant
+namespace plus_xz_quadrant_rotating
{
static const struct patch_info patch_info_array[]
= {
@@ -118,14 +141,32 @@ namespace plus_xz_quadrant
{"-y", patch::patch_is_minus, 'y', -90.0, -45.0, -90.0, -45.0},
};
static const int N_patches = sizeof(patch_info_array) / sizeof(patch_info);
- } // namespace patch_system_info::plus_xz_quadrant
+ } // namespace patch_system_info::plus_xz_quadrant_rotating
+
+//
+// +[xyz] (octant) patch system
+// ... mirror symmetry across x=0 plane, y=0 plane, z=0 plane
+//
+namespace plus_xyz_octant_mirrored
+ {
+ static const struct patch_info patch_info_array[]
+ = {
+// +z patch (45 x 45 degrees): dmu [ 0, 45], dnu [ 0, 45]
+ {"+z", patch::patch_is_plus, 'z', 0.0, 45.0, 0.0, 45.0},
+// +x patch (45 x 45 degrees): dnu [ 45, 90], dphi [ 0, 45]
+ {"+x", patch::patch_is_plus, 'x', 45.0, 90.0, 0.0, 45.0},
+// +y patch (45 x 45 degrees): dmu [ 45, 90], dphi [ 45, 90]
+ {"+y", patch::patch_is_plus, 'y', 45.0, 90.0, 45.0, 90.0},
+ };
+ static const int N_patches = sizeof(patch_info_array) / sizeof(patch_info);
+ } // namespace patch_system_info::octant_mirrored
//
// +[xyz] (octant) patch system
-// ... mirror symmetry across z=0 plane,
-// 90 degree periodic rotation symmetry about z axis
+// ... 90 degree periodic rotation symmetry about z axis,
+// mirror symmetry across z=0 plane
//
-namespace plus_xyz_octant
+namespace plus_xyz_octant_rotating
{
static const struct patch_info patch_info_array[]
= {
@@ -137,6 +178,6 @@ namespace plus_xyz_octant
{"+y", patch::patch_is_plus, 'y', 45.0, 90.0, 45.0, 90.0},
};
static const int N_patches = sizeof(patch_info_array) / sizeof(patch_info);
- } // namespace patch_system_info::octant
+ } // namespace patch_system_info::plus_xyz_octant_rotating
} // namespace patch_system_info::