diff options
author | eschnett <eschnett@20f44201-0f4f-0410-9130-e5fc2714a787> | 2011-09-26 01:39:09 +0000 |
---|---|---|
committer | eschnett <eschnett@20f44201-0f4f-0410-9130-e5fc2714a787> | 2011-09-26 01:39:09 +0000 |
commit | 119825afea3a659098d5a6f08c433d3feb99fcdf (patch) | |
tree | bdf2edacd8dc0928156076593046c3d8d1d841da /src/rotatingsymmetry180.c | |
parent | 3a8cc0d7cec63a12eb45a1c6dcfdfeb303671e19 (diff) |
Implement the "dd" tensor type
Implement the "dd" tensor type, a full 3x3 tensor without symmetries.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/RotatingSymmetry180/trunk@65 20f44201-0f4f-0410-9130-e5fc2714a787
Diffstat (limited to 'src/rotatingsymmetry180.c')
-rw-r--r-- | src/rotatingsymmetry180.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/rotatingsymmetry180.c b/src/rotatingsymmetry180.c index c12407c..bbd8dd5 100644 --- a/src/rotatingsymmetry180.c +++ b/src/rotatingsymmetry180.c @@ -189,6 +189,16 @@ int BndRot180VI (cGH const * restrict const cctkGH, case 5: break; default: assert(0); } + } else if (CCTK_EQUALS (tensortypealias, "uu") + || CCTK_EQUALS (tensortypealias, "ud") + || CCTK_EQUALS (tensortypealias, "du") + || CCTK_EQUALS (tensortypealias, "dd")) { + assert (numvars == 9); + paritiess[var][0] = paritiess[var][1] = paritiess[var][2] = +1; + int const d1 = index % 3; + int const d2 = index / 3; + paritiess[var][d1] *= -1; + paritiess[var][d2] *= -1; } else if (CCTK_EQUALS (tensortypealias, "ddd_sym")) { assert (numvars == 12); paritiess[var][0] = paritiess[var][1] = paritiess[var][2] = +1; |