aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreschnett <eschnett@1bf05452-ddb3-4880-bfa1-00436340132b>2012-11-21 16:11:00 +0000
committereschnett <eschnett@1bf05452-ddb3-4880-bfa1-00436340132b>2012-11-21 16:11:00 +0000
commitd77fef8058b20721198c408497ab1d6219b268fc (patch)
tree9b914025164cf11490ae2e999fd90413cdc39023
parent5776fa98abced9dd98c1fc82c02d1ca88ce0280b (diff)
Remove unused variables
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Periodic/trunk@37 1bf05452-ddb3-4880-bfa1-00436340132b
-rw-r--r--src/periodic.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/periodic.c b/src/periodic.c
index 2ef44b4..401f6ed 100644
--- a/src/periodic.c
+++ b/src/periodic.c
@@ -293,30 +293,26 @@ BndPeriodicVI (CCTK_POINTER_TO_CONST _GH,
int
-BndPeriodicVN (CCTK_POINTER_TO_CONST _GH,
+BndPeriodicVN (CCTK_POINTER_TO_CONST cctkGH,
int size,
int const * restrict const stencil,
int const do_periodic[3],
char const * restrict const vn)
{
- cGH const * restrict const cctkGH = _GH;
-
int const vi = CCTK_VarIndex (vn);
assert (vi>=0 && vi<CCTK_NumVars());
- return BndPeriodicVI (_GH, size, stencil, do_periodic, vi);
+ return BndPeriodicVI (cctkGH, size, stencil, do_periodic, vi);
}
int
-BndPeriodicGI (CCTK_POINTER_TO_CONST _GH,
+BndPeriodicGI (CCTK_POINTER_TO_CONST cctkGH,
int size,
int const * restrict const stencil,
int const do_periodic[3],
int const gi)
{
- cGH const * restrict const cctkGH = _GH;
-
int v1, nv;
int vi;
int ierr;
@@ -327,7 +323,7 @@ BndPeriodicGI (CCTK_POINTER_TO_CONST _GH,
v1 = CCTK_FirstVarIndexI(gi);
assert (v1>=0 && v1<CCTK_NumVars());
for (vi=v1; vi<v1+nv; ++vi) {
- ierr = BndPeriodicVI (_GH, size, stencil, do_periodic, vi);
+ ierr = BndPeriodicVI (cctkGH, size, stencil, do_periodic, vi);
if (ierr) return ierr;
}
}
@@ -337,7 +333,7 @@ BndPeriodicGI (CCTK_POINTER_TO_CONST _GH,
int
-BndPeriodicGN (CCTK_POINTER_TO_CONST _GH,
+BndPeriodicGN (CCTK_POINTER_TO_CONST cctkGH,
int size,
int const * restrict const stencil,
int const do_periodic[3],
@@ -345,7 +341,7 @@ BndPeriodicGN (CCTK_POINTER_TO_CONST _GH,
{
int const gi = CCTK_GroupIndex (gn);
assert (gi>=0 && gi<CCTK_NumGroups());
- return BndPeriodicGI (_GH, size, stencil, do_periodic, gi);
+ return BndPeriodicGI (cctkGH, size, stencil, do_periodic, gi);
}