diff options
author | hawke <hawke@eec4d7dc-71c2-46d6-addf-10296150bf52> | 2005-05-04 15:45:23 +0000 |
---|---|---|
committer | hawke <hawke@eec4d7dc-71c2-46d6-addf-10296150bf52> | 2005-05-04 15:45:23 +0000 |
commit | 6401148a3994da3bbf5ace1b8505492348039438 (patch) | |
tree | 27e14ed06881cb2a745267b50bfbe4a3e4b055d1 | |
parent | b09a8b4cccced59926651c2e7a0906d95b9bb5b2 (diff) |
Handle tensor type alias "d".
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Cartoon2D/trunk@87 eec4d7dc-71c2-46d6-addf-10296150bf52
-rw-r--r-- | src/ApplyCartoon.c | 2 | ||||
-rw-r--r-- | src/SymInterp.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ApplyCartoon.c b/src/ApplyCartoon.c index d1f9be8..87680cd 100644 --- a/src/ApplyCartoon.c +++ b/src/ApplyCartoon.c @@ -209,7 +209,7 @@ void Cartoon_ApplyBoundaries(CCTK_ARGUMENTS) if (CCTK_Equals(tensortype, "scalar")) { BndCartoon2DVI(cctkGH, TENSORTYPE_SCALAR, prolongmethod, vars[i]); - } else if (CCTK_Equals(tensortype, "u")) + } else if ((CCTK_Equals(tensortype, "u")) || (CCTK_Equals(tensortype, "d"))) { BndCartoon2DVI(cctkGH, TENSORTYPE_U, prolongmethod, vars[i]); } else if (CCTK_Equals(tensortype, "dd_sym")) diff --git a/src/SymInterp.c b/src/SymInterp.c index 8904bcb..0efc291 100644 --- a/src/SymInterp.c +++ b/src/SymInterp.c @@ -504,7 +504,7 @@ Cartoon2D_SymmetryInterpolate (CCTK_POINTER_TO_CONST const cctkGH_, tensortype = &scalar; basevar = vi; var = 0; - } else if (CCTK_EQUALS (tensortypealias, "u")) { + } else if ((CCTK_EQUALS (tensortypealias, "u")) ||(CCTK_EQUALS (tensortypealias, "d"))) { /* vector */ assert (numvars == 3); tensortype = &vector; |