diff options
author | schnetter <schnetter@20f44201-0f4f-0410-9130-e5fc2714a787> | 2005-05-04 15:10:10 +0000 |
---|---|---|
committer | schnetter <schnetter@20f44201-0f4f-0410-9130-e5fc2714a787> | 2005-05-04 15:10:10 +0000 |
commit | 9c0c79442fcc16921165c2479144b30b5fef4e47 (patch) | |
tree | 62e2e7a5b00926d398a5405b8261bddfced18b99 /src | |
parent | e8f37263341ef6c014695e6069ad40121c615883 (diff) |
Handle the tensor type alias "d".
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/RotatingSymmetry180/trunk@18 20f44201-0f4f-0410-9130-e5fc2714a787
Diffstat (limited to 'src')
-rw-r--r-- | src/interpolate.c | 8 | ||||
-rw-r--r-- | src/rotatingsymmetry180.c | 4 |
2 files changed, 9 insertions, 3 deletions
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; |