aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/CarpetLib/src')
-rw-r--r--Carpet/CarpetLib/src/instantiate18
1 files changed, 10 insertions, 8 deletions
diff --git a/Carpet/CarpetLib/src/instantiate b/Carpet/CarpetLib/src/instantiate
index 047adc12c..788211f2f 100644
--- a/Carpet/CarpetLib/src/instantiate
+++ b/Carpet/CarpetLib/src/instantiate
@@ -159,18 +159,20 @@ INSTANTIATE(CCTK_REAL16)
# endif
#endif
-#ifdef CARPET_COMPLEX8
-# ifdef HAVE_CCTK_COMPLEX8
+#ifndef CARPET_NO_COMPLEX
+# ifdef CARPET_COMPLEX8
+# ifdef HAVE_CCTK_COMPLEX8
INSTANTIATE(CCTK_COMPLEX8)
+# endif
# endif
-#endif
-#ifdef CARPET_COMPLEX16
-# ifdef HAVE_CCTK_COMPLEX16
+# ifdef CARPET_COMPLEX16
+# ifdef HAVE_CCTK_COMPLEX16
INSTANTIATE(CCTK_COMPLEX16)
+# endif
# endif
-#endif
-#ifdef CARPET_COMPLEX32
-# ifdef HAVE_CCTK_COMPLEX32
+# ifdef CARPET_COMPLEX32
+# ifdef HAVE_CCTK_COMPLEX32
INSTANTIATE(CCTK_COMPLEX32)
+# endif
# endif
#endif