From 4508a50e32aea320593740dea0f382d9273490d9 Mon Sep 17 00:00:00 2001 From: eschnett Date: Tue, 15 Jan 2013 02:38:41 +0000 Subject: 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 --- src/slab.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/slab.h') diff --git a/src/slab.h b/src/slab.h index 9718c42..ee252e0 100644 --- a/src/slab.h +++ b/src/slab.h @@ -8,7 +8,7 @@ extern "C" #include -#include "cctk.h" +#include /* * 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; }; -- cgit v1.2.3