aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorallen <allen@b61c5cb5-eaca-4651-9a7a-d64986f99364>2000-09-01 20:51:51 +0000
committerallen <allen@b61c5cb5-eaca-4651-9a7a-d64986f99364>2000-09-01 20:51:51 +0000
commitc01cd301abe303c731e4554bc02b7e7c4802d407 (patch)
treecdd46aa3e6ed3ae81168377bf6e107329180ae24 /src/include
parent127a5f37d9285aabc00e623c347a7c0d4150d3b7 (diff)
Added an index for arrays to the pGA and pGH which is needed to make that
Cache lines are associated uniquely with each timelevel of GA This unique index is used now when storage is assigned for the GA git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@264 b61c5cb5-eaca-4651-9a7a-d64986f99364
Diffstat (limited to 'src/include')
-rw-r--r--src/include/pGH.h1
-rw-r--r--src/include/pGV.h1
-rw-r--r--src/include/pughi.h1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/include/pGH.h b/src/include/pGH.h
index d5139d9..8e3cc63 100644
--- a/src/include/pGH.h
+++ b/src/include/pGH.h
@@ -25,6 +25,7 @@ typedef struct PGH
/* Size of the problems */
int nvariables; /* Number of Grid variables */
+ int narrays; /* Number of Grid arrays (inc. timelevels) */
void ***variables; /* Pointers to them */
/* What time level we're on */
diff --git a/src/include/pGV.h b/src/include/pGV.h
index a824b2f..e184874 100644
--- a/src/include/pGV.h
+++ b/src/include/pGV.h
@@ -97,6 +97,7 @@ typedef struct PGA
{
char *name; /* The name of the grid function */
int id; /* My ID number in my GH parent. */
+ int arrayid; /* My ID including timelevels */
void *padddata; /* Storage for the data. */
void *data; /* See the note above. */
int storage; /* Do we have storage or not? */
diff --git a/src/include/pughi.h b/src/include/pughi.h
index ef2eb7d..2971f57 100644
--- a/src/include/pughi.h
+++ b/src/include/pughi.h
@@ -120,6 +120,7 @@ pGA *PUGH_SetupGArray(void *parent,
pComm *comm,
const char *name,
int id,
+ int arrayid,
int varsize,
int vtype,
int stagger);