From 6401148a3994da3bbf5ace1b8505492348039438 Mon Sep 17 00:00:00 2001 From: hawke Date: Wed, 4 May 2005 15:45:23 +0000 Subject: Handle tensor type alias "d". git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Cartoon2D/trunk@87 eec4d7dc-71c2-46d6-addf-10296150bf52 --- src/ApplyCartoon.c | 2 +- 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; -- cgit v1.2.3