diff options
author | eschnett <eschnett@2e825fa2-fb71-486d-8b7f-a5ff3f0f6cb8> | 2013-01-15 02:38:41 +0000 |
---|---|---|
committer | eschnett <eschnett@2e825fa2-fb71-486d-8b7f-a5ff3f0f6cb8> | 2013-01-15 02:38:41 +0000 |
commit | 4508a50e32aea320593740dea0f382d9273490d9 (patch) | |
tree | ed22201c510ed98588579da1ab43652a44eefbba /src/slab.h | |
parent | 423826345276afcab96e60ec3b17133f8526fd3b (diff) |
API Update: Support array padding (cctk_ash)
Add new field ash to structures holding lsh.
Use ash when calculating array indices.
NOTE: This changes the API; all callers must be updated.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Slab/trunk@89 2e825fa2-fb71-486d-8b7f-a5ff3f0f6cb8
Diffstat (limited to 'src/slab.h')
-rw-r--r-- | src/slab.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -8,7 +8,7 @@ extern "C" #include <stdio.h> -#include "cctk.h" +#include <cctk.h> /* * Slab_Transfer copies a slab from one array into a slab of another @@ -58,6 +58,7 @@ extern "C" * gsh >= 0 * lbnd >= 0 * lsh >= 0 + * ash >= lsh * lbnd + lsh <= gsh * lbbox and ubbox must be booleans, i.e., either 0 or 1 * nghostzones >= 0 @@ -80,6 +81,7 @@ extern "C" struct slabinfo { int gsh; int lbnd, lsh; + int ash; int lbbox, ubbox, nghostzones; int off, str, len; }; |