From 64038eb309dfc24313bf5db96853eef78722a386 Mon Sep 17 00:00:00 2001 From: schnetter Date: Fri, 14 Oct 2005 15:14:40 +0000 Subject: Set the variable types correctly when more than one group are involved. The code used to use the last group's variable type. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/RotatingSymmetry180/trunk@29 20f44201-0f4f-0410-9130-e5fc2714a787 --- src/rotatingsymmetry180.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/rotatingsymmetry180.c b/src/rotatingsymmetry180.c index b2a8a52..c88779a 100644 --- a/src/rotatingsymmetry180.c +++ b/src/rotatingsymmetry180.c @@ -30,6 +30,7 @@ int BndRot180VI (cGH const * restrict const cctkGH, cGroupDynamicData data; char * restrict fullname; void * restrict * restrict varptrs; + int * restrict vartypes; int (*paritiess)[3]; @@ -43,7 +44,6 @@ int BndRot180VI (cGH const * restrict const cctkGH, int offset[3]; /* offset 0..1 due to avoid_origin */ struct xferinfo * restrict xferinfo; - int * restrict vartypes; int var; @@ -82,6 +82,8 @@ int BndRot180VI (cGH const * restrict const cctkGH, assert (nvars==0 || gis); varptrs = malloc (nvars * sizeof *varptrs); assert (nvars==0 || varptrs); + vartypes = malloc (nvars * sizeof *vartypes); + assert (nvars==0 || vartypes); for (var=0; var=0 && gis[var]= 0); } for (d=0; dcctk_bbox[2*dir]) { for (var=0; var