aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsai <sai@eec4d7dc-71c2-46d6-addf-10296150bf52>2000-09-21 17:31:30 +0000
committersai <sai@eec4d7dc-71c2-46d6-addf-10296150bf52>2000-09-21 17:31:30 +0000
commit491794bd36fe869b8c0d18821f456d443970d992 (patch)
tree75f21ff34c83a6ee70aa7e71e9641dda37509278
parentee032d6a08170ee11c32339382bc959d108da73b (diff)
Cartoon2D now uses the INCLUDE mechanism to export its tensor definitions.
Thorns using Cartoon should have `USES INCLUDE: Cartoon2D_tensors.h' in their interface.ccl and should #include Cartoon2D_tensors.h in their source file(s). Sai. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Cartoon2D/trunk@16 eec4d7dc-71c2-46d6-addf-10296150bf52
-rw-r--r--interface.ccl2
-rw-r--r--src/Cartoon2DBC.c2
-rw-r--r--src/include/cartoon2D_tensortypes.h12
3 files changed, 3 insertions, 13 deletions
diff --git a/interface.ccl b/interface.ccl
index e83a4fc..176b72f 100644
--- a/interface.ccl
+++ b/interface.ccl
@@ -2,3 +2,5 @@
# $Header$
implements: cartoon2d
+
+INCLUDES HEADER: Cartoon2D_tensors.h in Cartoon2D_tensors.h
diff --git a/src/Cartoon2DBC.c b/src/Cartoon2DBC.c
index 95e82a4..9bd1828 100644
--- a/src/Cartoon2DBC.c
+++ b/src/Cartoon2DBC.c
@@ -22,7 +22,7 @@
#include "cctk_Parameters.h"
#include "cctk_FortranString.h"
-#include "cartoon2D_tensortypes.h"
+#include "Cartoon2D_tensors.h"
static char *rcsid = "$Id$";
diff --git a/src/include/cartoon2D_tensortypes.h b/src/include/cartoon2D_tensortypes.h
deleted file mode 100644
index 4d0092b..0000000
--- a/src/include/cartoon2D_tensortypes.h
+++ /dev/null
@@ -1,12 +0,0 @@
-/* Number of tensor types defined */
-#define N_TENSORTYPES 3
-
-/* Tensor types */
-#define TENSORTYPE_SCALAR 0
-#define TENSORTYPE_U 1
-#define TENSORTYPE_DDSYM 2
-
-/* Number of components */
-#define N_TENSORTYPE_SCALAR 1
-#define N_TENSORTYPE_U 3
-#define N_TENSORTYPE_DDSYM 6