aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschnetter <schnetter@b61c5cb5-eaca-4651-9a7a-d64986f99364>2005-03-24 15:18:47 +0000
committerschnetter <schnetter@b61c5cb5-eaca-4651-9a7a-d64986f99364>2005-03-24 15:18:47 +0000
commit0e3f3eb04f91f42bbf2b4c4abfd442ee79a2bb4e (patch)
treeb61ffb5dad499039abf236e4b9af13f159d5268e
parentb8dcae849e6bd68cc9c3848f36aaf697898674f5 (diff)
Take group vector length into account when deciding how to allocate
storage git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@464 b61c5cb5-eaca-4651-9a7a-d64986f99364
-rw-r--r--src/Storage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Storage.c b/src/Storage.c
index 3ae2428..acfec4b 100644
--- a/src/Storage.c
+++ b/src/Storage.c
@@ -672,7 +672,7 @@ static int PUGH_EnableGArrayGroupStorage (pGH *pughGH,
GA->padddata = NULL;
}
- if (GA->extras->npoints * GA->varsize <= 0)
+ if (GA->extras->npoints * GA->varsize * GA->vector_size <= 0)
{
/* only warn if the global array size is also zero */
for (i = 0, global_size = 1; i < GA->extras->dim; i++)