aboutsummaryrefslogtreecommitdiff
path: root/src/patch
diff options
context:
space:
mode:
authorjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2003-08-18 10:01:03 +0000
committerjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2003-08-18 10:01:03 +0000
commit88ce8f204d96b41c7abd8f302c6aa2e1bd4ea7a9 (patch)
tree98b563a13fa8cbff16e9d3b14893717ceaffd2f2 /src/patch
parentb15e053d659533a3df651bdcf486ae14f5107639 (diff)
move lots and lots of code into C++ namespace AHFinderDirect
so it can't conflict with stuff in other thorns git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@1184 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'src/patch')
-rw-r--r--src/patch/coords.cc10
-rw-r--r--src/patch/coords.hh8
-rw-r--r--src/patch/fd_grid.cc8
-rw-r--r--src/patch/fd_grid.hh8
-rw-r--r--src/patch/ghost_zone.cc10
-rw-r--r--src/patch/ghost_zone.hh8
-rw-r--r--src/patch/grid.cc10
-rw-r--r--src/patch/grid.hh8
-rw-r--r--src/patch/patch.cc10
-rw-r--r--src/patch/patch.hh8
-rw-r--r--src/patch/patch_edge.hh8
-rw-r--r--src/patch/patch_info.cc10
-rw-r--r--src/patch/patch_info.hh8
-rw-r--r--src/patch/patch_interp.cc10
-rw-r--r--src/patch/patch_interp.hh8
-rw-r--r--src/patch/patch_system.cc10
-rw-r--r--src/patch/patch_system.hh8
-rw-r--r--src/patch/patch_system_info.hh10
-rw-r--r--src/patch/test_coords.cc1
-rw-r--r--src/patch/test_coords2.cc2
-rw-r--r--src/patch/test_patch_system.cc2
21 files changed, 164 insertions, 1 deletions
diff --git a/src/patch/coords.cc b/src/patch/coords.cc
index 8bc48ef..9171b93 100644
--- a/src/patch/coords.cc
+++ b/src/patch/coords.cc
@@ -41,6 +41,10 @@ using jtutil::hypot3;
#include "coords.hh"
+// all the code in this file is inside this namespace
+namespace AHFinderDirect
+ {
+
//******************************************************************************
//******************************************************************************
//******************************************************************************
@@ -658,3 +662,9 @@ else error_exit(PANIC_EXIT,
,
int(S)); /*NOTREACHED*/
}
+
+//******************************************************************************
+//******************************************************************************
+//******************************************************************************
+
+ } // namespace AHFinderDirect
diff --git a/src/patch/coords.hh b/src/patch/coords.hh
index 560d1d6..e6ca9bd 100644
--- a/src/patch/coords.hh
+++ b/src/patch/coords.hh
@@ -16,6 +16,10 @@
// "../jtutil/util.hh"
//
+// everything in this file is inside this namespace
+namespace AHFinderDirect
+ {
+
//******************************************************************************
//
@@ -306,3 +310,7 @@ private:
// global (x,y,z) coordinates of local origin point
fp origin_x_, origin_y_, origin_z_;
};
+
+//******************************************************************************
+
+ } // namespace AHFinderDirect
diff --git a/src/patch/fd_grid.cc b/src/patch/fd_grid.cc
index 3981e3c..48e490e 100644
--- a/src/patch/fd_grid.cc
+++ b/src/patch/fd_grid.cc
@@ -26,6 +26,10 @@ using jtutil::error_exit;
#include "grid.hh"
#include "fd_grid.hh"
+// all the code in this file is inside this namespace
+namespace AHFinderDirect
+ {
+
//*****************************************************************************
//
@@ -95,3 +99,7 @@ default:
m, FINITE_DIFF_ORDER, FD_GRID__MOL_RADIUS); /*NOTREACHED*/
}
}
+
+//******************************************************************************
+
+ } // namespace AHFinderDirect
diff --git a/src/patch/fd_grid.hh b/src/patch/fd_grid.hh
index 6e0bf5f..c750a75 100644
--- a/src/patch/fd_grid.hh
+++ b/src/patch/fd_grid.hh
@@ -23,6 +23,10 @@
// "grid.hh"
//
+// everything in this file is inside this namespace
+namespace AHFinderDirect
+ {
+
//******************************************************************************
//
@@ -503,3 +507,7 @@ private:
fd_grid(const fd_grid& rhs);
fd_grid& operator=(const fd_grid& rhs);
};
+
+//******************************************************************************
+
+ } // namespace AHFinderDirect
diff --git a/src/patch/ghost_zone.cc b/src/patch/ghost_zone.cc
index fc61220..985c1ca 100644
--- a/src/patch/ghost_zone.cc
+++ b/src/patch/ghost_zone.cc
@@ -44,6 +44,10 @@ using jtutil::error_exit;
#include "patch_interp.hh"
#include "ghost_zone.hh"
+// all the code in this file is inside this namespace
+namespace AHFinderDirect
+ {
+
//******************************************************************************
//******************************************************************************
//******************************************************************************
@@ -636,3 +640,9 @@ if (Jacobian_buffer_ == NULL)
Jacobian_min_y_ipar_m_, Jacobian_max_y_ipar_m_);
other_patch_interp_->Jacobian(*Jacobian_buffer_);
}
+
+//******************************************************************************
+//******************************************************************************
+//******************************************************************************
+
+ } // namespace AHFinderDirect
diff --git a/src/patch/ghost_zone.hh b/src/patch/ghost_zone.hh
index ae98286..a35aa6f 100644
--- a/src/patch/ghost_zone.hh
+++ b/src/patch/ghost_zone.hh
@@ -26,6 +26,10 @@
// "patch_interp.hh"
//
+// everything in this file is inside this namespace
+namespace AHFinderDirect
+ {
+
//*****************************************************************************
//
@@ -799,3 +803,7 @@ private:
// ... subscripts are (y_iperp, x_ipar, y_ipar_m)
mutable jtutil::array3d<fp>* Jacobian_buffer_;
};
+
+//******************************************************************************
+
+ } // namespace AHFinderDirect
diff --git a/src/patch/grid.cc b/src/patch/grid.cc
index 7a32d47..ec29641 100644
--- a/src/patch/grid.cc
+++ b/src/patch/grid.cc
@@ -27,6 +27,10 @@
#include "coords.hh"
#include "grid.hh"
+// all the code in this file is inside this namespace
+namespace AHFinderDirect
+ {
+
//*****************************************************************************
//*****************************************************************************
//*****************************************************************************
@@ -152,3 +156,9 @@ grid::grid(const grid_array_pars& grid_array_pars_in,
max_sigma_(jtutil::radians_of_degrees(grid_pars_in.max_dsigma))
// no comma
{ }
+
+//******************************************************************************
+//******************************************************************************
+//******************************************************************************
+
+ } // namespace AHFinderDirect
diff --git a/src/patch/grid.hh b/src/patch/grid.hh
index d516bd7..3d4a811 100644
--- a/src/patch/grid.hh
+++ b/src/patch/grid.hh
@@ -19,6 +19,10 @@
// "coords.hh"
//
+// everything in this file is inside this namespace
+namespace AHFinderDirect
+ {
+
//*****************************************************************************
//
@@ -796,3 +800,7 @@ private:
const fp min_rho_, max_rho_;
const fp min_sigma_, max_sigma_;
};
+
+//******************************************************************************
+
+ } // namespace AHFinderDirect
diff --git a/src/patch/patch.cc b/src/patch/patch.cc
index bbe304e..37b61b2 100644
--- a/src/patch/patch.cc
+++ b/src/patch/patch.cc
@@ -53,6 +53,10 @@ using jtutil::error_exit;
#include "patch_interp.hh"
#include "ghost_zone.hh"
+// all the code in this file is inside this namespace
+namespace AHFinderDirect
+ {
+
//******************************************************************************
//******************************************************************************
//******************************************************************************
@@ -1013,3 +1017,9 @@ max_rho_ghost_zone().assert_fully_setup();
min_sigma_ghost_zone().assert_fully_setup();
max_sigma_ghost_zone().assert_fully_setup();
}
+
+//******************************************************************************
+//******************************************************************************
+//******************************************************************************
+
+ } // namespace AHFinderDirect
diff --git a/src/patch/patch.hh b/src/patch/patch.hh
index 5002aa7..d18c53c 100644
--- a/src/patch/patch.hh
+++ b/src/patch/patch.hh
@@ -24,6 +24,10 @@
// "fd_grid.hh"
//
+// everything in this file is inside this namespace
+namespace AHFinderDirect
+ {
+
//*****************************************************************************
//*****************************************************************************
//*****************************************************************************
@@ -1055,3 +1059,7 @@ private:
y_patch(const y_patch& rhs);
y_patch& operator=(const y_patch& rhs);
};
+
+//******************************************************************************
+
+ } // namespace AHFinderDirect
diff --git a/src/patch/patch_edge.hh b/src/patch/patch_edge.hh
index fa49713..7ba45bb 100644
--- a/src/patch/patch_edge.hh
+++ b/src/patch/patch_edge.hh
@@ -18,6 +18,10 @@
// "patch.hh"
//
+// everything in this file is inside this namespace
+namespace AHFinderDirect
+ {
+
//*****************************************************************************
//
@@ -276,3 +280,7 @@ private:
patch& my_patch_;
const bool is_min_, is_rho_;
};
+
+//******************************************************************************
+
+ } // namespace AHFinderDirect
diff --git a/src/patch/patch_info.cc b/src/patch/patch_info.cc
index 68e154e..c293cf6 100644
--- a/src/patch/patch_info.cc
+++ b/src/patch/patch_info.cc
@@ -25,6 +25,10 @@ using jtutil::error_exit;
#include "grid.hh"
#include "patch_info.hh"
+// all the code in this file is inside this namespace
+namespace AHFinderDirect
+ {
+
//******************************************************************************
//******************************************************************************
//******************************************************************************
@@ -189,3 +193,9 @@ if (! ( jtutil::fuzzy<fp>::is_integer(N_irho_zones_fp)
double(N_irho_zones_fp), double(N_isigma_zones_fp));
/*NOTREACHED*/
}
+
+//******************************************************************************
+//******************************************************************************
+//******************************************************************************
+
+ } // namespace AHFinderDirect
diff --git a/src/patch/patch_info.hh b/src/patch/patch_info.hh
index 9be845e..fd4eb9f 100644
--- a/src/patch/patch_info.hh
+++ b/src/patch/patch_info.hh
@@ -13,6 +13,10 @@
// "grid.hh"
//
+// everything in this file is inside this namespace
+namespace AHFinderDirect
+ {
+
//*****************************************************************************
//
@@ -76,3 +80,7 @@ private:
void verify_grid_spacing_ok(int N_zones_per_right_angle)
const;
};
+
+//******************************************************************************
+
+ } // namespace AHFinderDirect
diff --git a/src/patch/patch_interp.cc b/src/patch/patch_interp.cc
index 6136a37..fcc90a7 100644
--- a/src/patch/patch_interp.cc
+++ b/src/patch/patch_interp.cc
@@ -36,6 +36,10 @@ using jtutil::error_exit;
#include "patch_interp.hh"
#include "ghost_zone.hh"
+// all the code in this file is inside this namespace
+namespace AHFinderDirect
+ {
+
//*****************************************************************************
//*****************************************************************************
//*****************************************************************************
@@ -651,3 +655,9 @@ if (status < 0)
return status;
}
+
+//******************************************************************************
+//******************************************************************************
+//******************************************************************************
+
+ } // namespace AHFinderDirect
diff --git a/src/patch/patch_interp.hh b/src/patch/patch_interp.hh
index e252693..73e2d9d 100644
--- a/src/patch/patch_interp.hh
+++ b/src/patch/patch_interp.hh
@@ -20,6 +20,10 @@
// "patch.hh"
//
+// everything in this file is inside this namespace
+namespace AHFinderDirect
+ {
+
//*****************************************************************************
//
@@ -317,3 +321,7 @@ private:
// ... index is (gfn)
mutable jtutil::array1d<void*> interp_data_buffer_ptrs_;
};
+
+//******************************************************************************
+
+ } // namespace AHFinderDirect
diff --git a/src/patch/patch_system.cc b/src/patch/patch_system.cc
index 5b1d02d..78c958f 100644
--- a/src/patch/patch_system.cc
+++ b/src/patch/patch_system.cc
@@ -78,6 +78,10 @@ using jtutil::error_exit;
#include "patch_system.hh"
#include "patch_system_info.hh"
+// all the code in this file is inside this namespace
+namespace AHFinderDirect
+ {
+
//******************************************************************************
//******************************************************************************
//******************************************************************************
@@ -2619,3 +2623,9 @@ max_ym = xgz.Jacobian_max_y_ipar_m();
return xgz.other_edge();
}
+
+//******************************************************************************
+//******************************************************************************
+//******************************************************************************
+
+ } // namespace AHFinderDirect
diff --git a/src/patch/patch_system.hh b/src/patch/patch_system.hh
index 070eb56..38e5ea3 100644
--- a/src/patch/patch_system.hh
+++ b/src/patch/patch_system.hh
@@ -25,6 +25,10 @@
// "patch_info.hh"
//
+// everything in this file is inside this namespace
+namespace AHFinderDirect
+ {
+
//******************************************************************************
//
@@ -609,3 +613,7 @@ private:
// ... used only by radius_in_local_xyz_direction()
int surface_interp_handle_, surface_interp_par_table_handle_;
};
+
+//******************************************************************************
+
+ } // namespace AHFinderDirect
diff --git a/src/patch/patch_system_info.hh b/src/patch/patch_system_info.hh
index 538555f..9d4fed7 100644
--- a/src/patch/patch_system_info.hh
+++ b/src/patch/patch_system_info.hh
@@ -14,6 +14,10 @@
// "patch_info.hh"
//
+// everything in this file is inside this namespace
+namespace AHFinderDirect
+ {
+
//******************************************************************************
//
@@ -186,4 +190,8 @@ namespace plus_xyz_octant
};
} // namespace patch_system_info::octant_mirrored
-} // namespace patch_system_info::
+ } // namespace patch_system_info::
+
+//******************************************************************************
+
+ } // namespace AHFinderDirect
diff --git a/src/patch/test_coords.cc b/src/patch/test_coords.cc
index eaf21cd..0abe7d8 100644
--- a/src/patch/test_coords.cc
+++ b/src/patch/test_coords.cc
@@ -21,6 +21,7 @@ using jtutil::degrees_of_radians;
#include "coords.hh"
+using namespace AHFinderDirect;
using namespace local_coords;
//******************************************************************************
diff --git a/src/patch/test_coords2.cc b/src/patch/test_coords2.cc
index c063af5..bc53633 100644
--- a/src/patch/test_coords2.cc
+++ b/src/patch/test_coords2.cc
@@ -22,6 +22,8 @@ using jtutil::fuzzy;
using jtutil::error_exit;
using jtutil::radians_of_degrees;
using jtutil::degrees_of_radians;
+
+using namespace AHFinderDirect;
using namespace local_coords;
// prototypes
diff --git a/src/patch/test_patch_system.cc b/src/patch/test_patch_system.cc
index 3b3450b..64ff79e 100644
--- a/src/patch/test_patch_system.cc
+++ b/src/patch/test_patch_system.cc
@@ -52,6 +52,8 @@ using jtutil::error_exit;
#include "ghost_zone.hh"
#include "patch_system.hh"
+using namespace AHFinderDirect;
+
//******************************************************************************
//