diff options
author | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2001-07-17 13:42:27 +0000 |
---|---|---|
committer | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2001-07-17 13:42:27 +0000 |
commit | 0f8af83b35b0f60b184cd1cf6fcf7812a2a3e459 (patch) | |
tree | 46788258c2d4724227ccba2caef1966296d40660 /src/patch/patch_system.hh | |
parent | 7ad5116005eea1389e998302cdbbd1b8772db98d (diff) |
add global_coords subobject to keep track of coordinate origin,
also member fns to get local <--> global coord conversions, origin
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@209 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'src/patch/patch_system.hh')
-rw-r--r-- | src/patch/patch_system.hh | 35 |
1 files changed, 32 insertions, 3 deletions
diff --git a/src/patch/patch_system.hh b/src/patch/patch_system.hh index 0ed44a4..d7d67b1 100644 --- a/src/patch/patch_system.hh +++ b/src/patch/patch_system.hh @@ -193,10 +193,35 @@ public: static const char *name_of_type(enum patch_system_type type_in); + + // + // ***** coordinates ***** + // -public: + // global (x,y,z) --> local (x,y,z) + fp local_x_of_global_x(fp global_x) const + { return global_coords_.local_x_of_global_x(global_x); } + fp local_y_of_global_y(fp global_y) const + { return global_coords_.local_y_of_global_y(global_y); } + fp local_z_of_global_z(fp global_z) const + { return global_coords_.local_z_of_global_z(global_z); } + + // local (x,y,z) --> global (x,y,z) + fp global_x_of_local_x(fp local_x) const + { return global_coords_.global_x_of_local_x(local_x); } + fp global_y_of_local_y(fp local_y) const + { return global_coords_.global_y_of_local_y(local_y); } + fp global_z_of_local_z(fp local_z) const + { return global_coords_.global_z_of_local_z(local_z); } + + // ... get global (x,y,z) coordinates of local origin point + fp origin_x() const { return global_coords_.origin_x(); } + fp origin_y() const { return global_coords_.origin_y(); } + fp origin_z() const { return global_coords_.origin_z(); } + + // - // ***** meta-info on/about the entire patch system ***** + // ***** meta-info about the entire patch system ***** // // patch-system type @@ -225,7 +250,8 @@ public: // // ***** constructor, destructor ***** // - patch_system(enum patch_system_type type_in, + patch_system(fp origin_x_in, fp origin_y_in, fp origin_z_in, + enum patch_system_type type_in, int N_ghost_zones, fp delta_drho_dsigma, int min_gfn_in, int max_gfn_in, int interpolator_order_in); @@ -282,6 +308,9 @@ private: patch_system& operator=(const patch_system &rhs); private: + // local <--> global coordinate mapping + global_coords global_coords_; + // meta-info about patch system enum patch_system_type type_; int N_patches_; |