From 0e3f3eb04f91f42bbf2b4c4abfd442ee79a2bb4e Mon Sep 17 00:00:00 2001 From: schnetter Date: Thu, 24 Mar 2005 15:18:47 +0000 Subject: 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 --- src/Storage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++) -- cgit v1.2.3