aboutsummaryrefslogtreecommitdiff
path: root/src/patch/ghost_zone.cc
diff options
context:
space:
mode:
authorjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2002-04-09 17:51:30 +0000
committerjthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5>2002-04-09 17:51:30 +0000
commit6246b68fd99f8776e9c42e474e9bcc12d6666188 (patch)
tree3891c0b6f933c111a89c34c9b212042ee08fa3a5 /src/patch/ghost_zone.cc
parent637da95a87f00072d702d073ca60c2b8bd0734ee (diff)
patch_frontier.hh
* tweak a comment ghost_zone.cc map sure to map iperp --> other-iperp in interpatch_ghost_zone::synchronize() git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@474 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'src/patch/ghost_zone.cc')
-rw-r--r--src/patch/ghost_zone.cc18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/patch/ghost_zone.cc b/src/patch/ghost_zone.cc
index f778bbe..5b3454e 100644
--- a/src/patch/ghost_zone.cc
+++ b/src/patch/ghost_zone.cc
@@ -524,13 +524,17 @@ other_frontier_->interpolate(ghosted_min_gfn, ghosted_max_gfn,
{
for (int iperp = min_iperp() ; iperp <= max_iperp() ; ++iperp)
{
- for (int ipar = min_ipar(iperp) ; ipar <= max_ipar(iperp) ; ++ipar)
- {
- int irho = my_edge(). irho_of_iperp_ipar(iperp,ipar);
- int isigma = my_edge().isigma_of_iperp_ipar(iperp,ipar);
- my_patch().ghosted_gridfn(gfn, irho,isigma)
- = (*interp_result_buffer_)(gfn, iperp,ipar);
- }
+ const int oiperp = other_iperp(iperp);
+
+ for (int ipar = min_ipar(iperp) ;
+ ipar <= max_ipar(iperp) ;
+ ++ipar)
+ {
+ int irho = my_edge(). irho_of_iperp_ipar(iperp,ipar);
+ int isigma = my_edge().isigma_of_iperp_ipar(iperp,ipar);
+ my_patch().ghosted_gridfn(gfn, irho,isigma)
+ = (*interp_result_buffer_)(gfn, oiperp,ipar);
+ }
}
}
}