aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/SetupGroup.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/SetupGroup.c b/src/SetupGroup.c
index c2a8bab..346da2a 100644
--- a/src/SetupGroup.c
+++ b/src/SetupGroup.c
@@ -97,6 +97,8 @@ static int PUGH_SetupScalarGroup (pGH *newGH,
void *temp;
+ (void) (vectorgroup + 0);
+
retval = 0; /* PUGH_SUCCESS */
temp = realloc (newGH->variables,
@@ -256,8 +258,8 @@ static int PUGH_SetupGAGroup (pGH *newGH,
{
/* Arrays can't (yet) have periodicity and manual setup,
so initialize them to zero */
- perme = (int *) calloc (dim, sizeof (int));
- nprocs = (int *) calloc (dim, sizeof (int));
+ perme = calloc (dim, sizeof (int));
+ nprocs = calloc (dim, sizeof (int));
if (! (perme && nprocs))
{
CCTK_WARN (0, "Memory allocation error in PUGH_SetupGAGroup");
@@ -268,7 +270,7 @@ static int PUGH_SetupGAGroup (pGH *newGH,
*/
for (i = 0 ; i < dim; i++)
{
- if (! nprocs[i] && abs (nsize[i]) <= 2*ghostsize[i] + 1)
+ if (abs (nsize[i]) <= 2*ghostsize[i])
{
nprocs[i] = 1;
}