aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/interpolate.c8
-rw-r--r--src/rotatingsymmetry90.c8
2 files changed, 12 insertions, 4 deletions
diff --git a/src/interpolate.c b/src/interpolate.c
index b99ddfc..b1d618f 100644
--- a/src/interpolate.c
+++ b/src/interpolate.c
@@ -293,7 +293,9 @@ Rot90_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")) {
@@ -580,7 +582,9 @@ Rot90_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;
diff --git a/src/rotatingsymmetry90.c b/src/rotatingsymmetry90.c
index a253d28..8db4b93 100644
--- a/src/rotatingsymmetry90.c
+++ b/src/rotatingsymmetry90.c
@@ -163,7 +163,9 @@ int BndRot90VI (cGH const * restrict const cctkGH,
if (CCTK_EQUALS (tensortypealias, "scalar")) {
/* scalar */
- } 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")) {
@@ -261,7 +263,9 @@ int BndRot90VI (cGH const * restrict const cctkGH,
/* scalar */
srcvi = vi;
/* do nothing */
- } else if (CCTK_EQUALS (tensortypealias, "u")) {
+ } else if (CCTK_EQUALS (tensortypealias, "u")
+ || CCTK_EQUALS (tensortypealias, "d"))
+ {
/* vector */
int srcindex;
srcindex = convert_index (step, index, alldirs, &parity);