From 9c0c79442fcc16921165c2479144b30b5fef4e47 Mon Sep 17 00:00:00 2001 From: schnetter Date: Wed, 4 May 2005 15:10:10 +0000 Subject: Handle the tensor type alias "d". git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/RotatingSymmetry180/trunk@18 20f44201-0f4f-0410-9130-e5fc2714a787 --- src/interpolate.c | 8 ++++++-- src/rotatingsymmetry180.c | 4 +++- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/interpolate.c b/src/interpolate.c index fac3409..edec57c 100644 --- a/src/interpolate.c +++ b/src/interpolate.c @@ -66,7 +66,9 @@ Rot180_CheckTensorTypes (CCTK_ARGUMENTS) groupname); free (groupname); } - } else if (CCTK_EQUALS (tensortypealias, "u")) { + } else if (CCTK_EQUALS (tensortypealias, "u") + || CCTK_EQUALS (tensortypealias, "d")) + { /* vector */ assert (numvars == 3); } else if (CCTK_EQUALS (tensortypealias, "dd_sym")) { @@ -273,7 +275,9 @@ Rot180_SymmetryInterpolate (CCTK_POINTER_TO_CONST const cctkGH_, free (groupname); } parities[0] = parities[1] = parities[2] = +1; - } else if (CCTK_EQUALS (tensortypealias, "u")) { + } else if (CCTK_EQUALS (tensortypealias, "u") + || CCTK_EQUALS (tensortypealias, "d")) + { assert (numvars == 3); parities[0] = parities[1] = parities[2] = +1; parities[index] = -1; diff --git a/src/rotatingsymmetry180.c b/src/rotatingsymmetry180.c index 6b019fc..f25beb9 100644 --- a/src/rotatingsymmetry180.c +++ b/src/rotatingsymmetry180.c @@ -118,7 +118,9 @@ int BndRot180VI (cGH const * restrict const cctkGH, if (CCTK_EQUALS (tensortypealias, "scalar")) { parities[0] = parities[1] = parities[2] = +1; - } else if (CCTK_EQUALS (tensortypealias, "u")) { + } else if (CCTK_EQUALS (tensortypealias, "u") + || CCTK_EQUALS (tensortypealias, "d")) + { assert (numvars == 3); parities[0] = parities[1] = parities[2] = +1; parities[index] = -1; -- cgit v1.2.3