aboutsummaryrefslogtreecommitdiff
path: root/src/patch
diff options
context:
space:
mode:
authorjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2003-02-27 13:54:55 +0000
committerjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2003-02-27 13:54:55 +0000
commitedf4fcfb0869c23abcb580d61e70991c9d4836a8 (patch)
tree7e21d85a177064c870149a6dd8c04f773525fbe9 /src/patch
parent07995eaa14b03487dc1333b91aa7f6c998eca45a (diff)
compute min/max horizon radius for each horizon found
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@952 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'src/patch')
-rw-r--r--src/patch/patch_system.cc11
-rw-r--r--src/patch/patch_system.hh2
2 files changed, 6 insertions, 7 deletions
diff --git a/src/patch/patch_system.cc b/src/patch/patch_system.cc
index 7046b30..3adaaed 100644
--- a/src/patch/patch_system.cc
+++ b/src/patch/patch_system.cc
@@ -1512,7 +1512,8 @@ norms.reset();
//******************************************************************************
//
-// This function computes norms of a ghosted-grid gridfn.
+// This function computes norms of a ghosted-grid gridfn over the
+// nominal grid.
//
void patch_system::ghosted_gridfn_norms(int ghosted_src_gfn,
jtutil::norm<fp>& norms)
@@ -1527,12 +1528,10 @@ norms.reset();
for (int pn = 0 ; pn < N_patches() ; ++pn)
{
const patch& p = ith_patch(pn);
- for (int irho = p.ghosted_min_irho() ;
- irho <= p.ghosted_max_irho() ;
- ++irho)
+ for (int irho = p.min_irho() ; irho <= p.max_irho() ; ++irho)
{
- for (int isigma = p.ghosted_min_isigma() ;
- isigma <= p.ghosted_max_isigma() ;
+ for (int isigma = p.min_isigma() ;
+ isigma <= p.max_isigma() ;
++isigma)
{
norms.data(p.ghosted_gridfn(ghosted_src_gfn, irho,isigma));
diff --git a/src/patch/patch_system.hh b/src/patch/patch_system.hh
index 99bead8..ce7b100 100644
--- a/src/patch/patch_system.hh
+++ b/src/patch/patch_system.hh
@@ -272,7 +272,7 @@ public:
// dst += delta
void add_to_ghosted_gridfn(fp delta, int ghosted_dst_gfn);
- // compute norms of gridfn
+ // compute norms of gridfn (only over nominal grid)
void gridfn_norms(int src_gfn, jtutil::norm<fp>& norms)
const;
void ghosted_gridfn_norms(int ghosted_src_gfn, jtutil::norm<fp>& norms)