diff options
author | eschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2010-11-24 02:58:40 +0000 |
---|---|---|
committer | eschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2010-11-24 02:58:40 +0000 |
commit | 232b81cc03dbdb548dffcf1f9b6e92659e2bd441 (patch) | |
tree | 30c700b12479072997f314e5625df78f964e82d7 /src/include/cctk_DebugDefines.h | |
parent | de4f1951d4d50293271482585e8fcc1cf273b72c (diff) |
Add CCTK_VECTGFINDEX3D and friends
Add functions CCTK_VectGF1D, CCTK_VectGF2D etc. and the corresponding
macros CCTK_VECTGFINDEX1D etc. that allow indexing into vector grid
variables. Vector grid variables require an additional index, namely
the vector index; these functions simplify using them.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4654 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/include/cctk_DebugDefines.h')
-rw-r--r-- | src/include/cctk_DebugDefines.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/cctk_DebugDefines.h b/src/include/cctk_DebugDefines.h index b4b8c445..84926536 100644 --- a/src/include/cctk_DebugDefines.h +++ b/src/include/cctk_DebugDefines.h @@ -16,3 +16,8 @@ int CCTK_GFIndex1D (const cGH *GH, int i); int CCTK_GFIndex2D (const cGH *GH, int i, int j); int CCTK_GFIndex3D (const cGH *GH, int i, int j, int k); int CCTK_GFIndex4D (const cGH *GH, int i, int j, int k, int l); + +int CCTK_VectGFIndex1D (const cGH *GH, int i, int n); +int CCTK_VectGFIndex2D (const cGH *GH, int i, int j, int n); +int CCTK_VectGFIndex3D (const cGH *GH, int i, int j, int k, int n); +int CCTK_VectGFIndex4D (const cGH *GH, int i, int j, int k, int l, int n); |