diff options
author | eschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2012-07-04 01:25:29 +0000 |
---|---|---|
committer | eschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2012-07-04 01:25:29 +0000 |
commit | 5890fa36427bdea8efe70079e3cd1e5612312e77 (patch) | |
tree | 47d730568fc835f8f37d54728de142c767699f3d /src/main/DebugDefines.c | |
parent | d9fda6d54df1e6de28a99e812e6c5769e4d9be4a (diff) |
Introduce cctk_ash, retire cctk_lssh
Introduce cctk_ash, describing the process-local array shape that has
been allocated. This may be larger than cctk_lsh, the process-local
shape that should be used.
Retire cctk_lssh and related infrastructure to handle staggered grid
functions.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4841 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/DebugDefines.c')
-rw-r--r-- | src/main/DebugDefines.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/main/DebugDefines.c b/src/main/DebugDefines.c index bc7a68eb..b7a1ea9c 100644 --- a/src/main/DebugDefines.c +++ b/src/main/DebugDefines.c @@ -79,7 +79,7 @@ int CCTK_GFIndex2D (const cGH *GH, int i, int j) i, j, GH->cctk_lsh[0], GH->cctk_lsh[1]); } #endif - return (i + GH->cctk_lsh[0]*j); + return (i + GH->cctk_ash[0]*j); } int CCTK_GFIndex3D (const cGH *GH, int i, int j, int k) @@ -95,7 +95,7 @@ int CCTK_GFIndex3D (const cGH *GH, int i, int j, int k) i, j, k, GH->cctk_lsh[0], GH->cctk_lsh[1], GH->cctk_lsh[2]); } #endif - return (i + GH->cctk_lsh[0]*(j + GH->cctk_lsh[1]*k)); + return (i + GH->cctk_ash[0]*(j + GH->cctk_ash[1]*k)); } int CCTK_GFIndex4D (const cGH *GH, int i, int j, int k, int l) @@ -112,7 +112,7 @@ int CCTK_GFIndex4D (const cGH *GH, int i, int j, int k, int l) i, j, k, l, GH->cctk_lsh[0], GH->cctk_lsh[1], GH->cctk_lsh[2], GH->cctk_lsh[3]); } #endif - return (i + GH->cctk_lsh[0]*(j + GH->cctk_lsh[1]*(k + GH->cctk_lsh[2] * l))); + return (i + GH->cctk_ash[0]*(j + GH->cctk_ash[1]*(k + GH->cctk_ash[2] * l))); } int CCTK_VectGFIndex0D (const cGH *GH, int n) @@ -147,7 +147,7 @@ int CCTK_VectGFIndex1D (const cGH *GH, int i, int n) n); } #endif - return (i + GH->cctk_lsh[0]*n); + return (i + GH->cctk_ash[0]*n); } int CCTK_VectGFIndex2D (const cGH *GH, int i, int j, int n) @@ -169,7 +169,7 @@ int CCTK_VectGFIndex2D (const cGH *GH, int i, int j, int n) n); } #endif - return (i + GH->cctk_lsh[0]*(j + GH->cctk_lsh[1]*n)); + return (i + GH->cctk_ash[0]*(j + GH->cctk_ash[1]*n)); } int CCTK_VectGFIndex3D (const cGH *GH, int i, int j, int k, int n) @@ -192,7 +192,7 @@ int CCTK_VectGFIndex3D (const cGH *GH, int i, int j, int k, int n) n); } #endif - return (i + GH->cctk_lsh[0]*(j + GH->cctk_lsh[1]*(k + GH->cctk_lsh[2]*n))); + return (i + GH->cctk_ash[0]*(j + GH->cctk_ash[1]*(k + GH->cctk_ash[2]*n))); } int CCTK_VectGFIndex4D (const cGH *GH, int i, int j, int k, int l, int n) @@ -216,6 +216,6 @@ int CCTK_VectGFIndex4D (const cGH *GH, int i, int j, int k, int l, int n) n); } #endif - return (i + GH->cctk_lsh[0]*(j + GH->cctk_lsh[1]*(k + GH->cctk_lsh[2]* - (l + GH->cctk_lsh[3]*n)))); + return (i + GH->cctk_ash[0]*(j + GH->cctk_ash[1]*(k + GH->cctk_ash[2]* + (l + GH->cctk_ash[3]*n)))); } |