aboutsummaryrefslogtreecommitdiff
path: root/src/GHExtension.c
diff options
context:
space:
mode:
authorallen <allen@ebee0441-1374-4afa-a3b5-247f3ba15b9a>2000-04-18 23:23:25 +0000
committerallen <allen@ebee0441-1374-4afa-a3b5-247f3ba15b9a>2000-04-18 23:23:25 +0000
commit942f73f90af9b3301972a2e56a90a810dcd53683 (patch)
tree608827602bc913f879e36eddf7615f8803624c00 /src/GHExtension.c
parentee28234767b04fb1cbd05c95378bc8f440ebd8a5 (diff)
Fixing GFExtras index
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOFlexIO/trunk@108 ebee0441-1374-4afa-a3b5-247f3ba15b9a
Diffstat (limited to 'src/GHExtension.c')
-rw-r--r--src/GHExtension.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/GHExtension.c b/src/GHExtension.c
index 5484ffd..6fc0e5a 100644
--- a/src/GHExtension.c
+++ b/src/GHExtension.c
@@ -225,17 +225,17 @@ static void SetupSliceCenter (cGH *GH)
/* is moved to the center index */
/* (unless nx,ny,nz=1) */
- for (dim = 0; dim < GH->cctk_dim; dim++)
+ for (dim = 0; dim < pughGH->dim; dim++)
{
- if (pughGH->GFExtras[GH->cctk_dim-1]->lnsize [dim] == 1)
+ if (pughGH->GFExtras[dim]->lnsize [dim] == 1)
{
myGH->sp2xyz [dim] = 0;
}
else
{
myGH->sp2xyz [dim] =
- pughGH->GFExtras[GH->cctk_dim-1]->nsize [dim]/2 -
- pughGH->GFExtras[GH->cctk_dim-1]->lb [pughGH->myproc][dim];
+ pughGH->GFExtras[dim]->nsize [dim]/2 -
+ pughGH->GFExtras[dim]->lb [pughGH->myproc][dim];
}
}
@@ -247,14 +247,14 @@ static void SetupSliceCenter (cGH *GH)
{
for (dim = 0; dim < GH->cctk_dim; dim++)
{
- if (pughGH->GFExtras[GH->cctk_dim-1]->lnsize [dim] == 1)
+ if (pughGH->GFExtras[dim]->lnsize [dim] == 1)
{
myGH->sp2xyz [dim] = 0;
}
else
{
myGH->sp2xyz [dim] = 1 -
- pughGH->GFExtras[GH->cctk_dim-1]->lb [pughGH->myproc][dim];
+ pughGH->GFExtras[dim]->lb [pughGH->myproc][dim];
}
}
}
@@ -262,21 +262,21 @@ static void SetupSliceCenter (cGH *GH)
/* In quadrant mode x and y are like full, but z is like octant */
if (CCTK_Equals (domain, "quadrant"))
{
- if (pughGH->GFExtras[GH->cctk_dim-1]->lnsize [2] == 1)
+ if (pughGH->GFExtras[2]->lnsize [2] == 1)
{
myGH->sp2xyz[2] = 0;
}
else
{
myGH->sp2xyz[2] =
- pughGH->GFExtras[GH->cctk_dim-1]->lnsize [2]/2 -
- pughGH->GFExtras[GH->cctk_dim-1]->lb [pughGH->myproc][2];
+ pughGH->GFExtras[2]->lnsize [2]/2 -
+ pughGH->GFExtras[2]->lb [pughGH->myproc][2];
}
}
if (CCTK_Equals (domain, "bitant"))
{
- if (pughGH->GFExtras[GH->cctk_dim-1]->lnsize [0] == 1)
+ if (pughGH->GFExtras[2]->lnsize [0] == 1)
{
myGH->sp2xyz[0] = 0;
}
@@ -284,18 +284,18 @@ static void SetupSliceCenter (cGH *GH)
{
myGH->sp2xyz[0] =
myGH->sp2xyz[0]/2 -
- pughGH->GFExtras[GH->cctk_dim-1]->lb [pughGH->myproc][0];
+ pughGH->GFExtras[2]->lb [pughGH->myproc][0];
}
- if (pughGH->GFExtras[GH->cctk_dim-1]->lnsize [1] == 1)
+ if (pughGH->GFExtras[2]->lnsize [1] == 1)
{
myGH->sp2xyz[1] = 0;
}
else
{
myGH->sp2xyz[1] =
- pughGH->GFExtras[GH->cctk_dim-1]->lnsize [1]/2 -
- pughGH->GFExtras[GH->cctk_dim-1]->lb [pughGH->myproc][1];
+ pughGH->GFExtras[2]->lnsize [1]/2 -
+ pughGH->GFExtras[2]->lb [pughGH->myproc][1];
}
}