From eccd90553f1c7eb81ed4733c03ca6a9da81d2618 Mon Sep 17 00:00:00 2001 From: schnetter Date: Fri, 14 Oct 2005 15:16:50 +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/RotatingSymmetry90/trunk@30 c3c03602-0f4f-0410-b3fa-d2c81c8a7dc5 --- src/rotatingsymmetry90.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/rotatingsymmetry90.c b/src/rotatingsymmetry90.c index a5abe48..a24c60e 100644 --- a/src/rotatingsymmetry90.c +++ b/src/rotatingsymmetry90.c @@ -68,6 +68,7 @@ int BndRot90VI (cGH const * restrict const cctkGH, cGroupDynamicData data; char * restrict fullname; void * restrict * restrict varptrs; + int * restrict vartypes; int firstvar; char tensortypealias[100]; @@ -87,7 +88,6 @@ int BndRot90VI (cGH const * restrict const cctkGH, int offset[3]; /* offset 0..1 due to avoid_origin */ struct xferinfo * restrict xferinfo; - int * restrict vartypes; int have_global_bbox, have_local_bbox; @@ -129,6 +129,8 @@ int BndRot90VI (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; d