aboutsummaryrefslogtreecommitdiff
path: root/src/Cartoon2D_tensors.h
diff options
context:
space:
mode:
authorschnetter <schnetter@eec4d7dc-71c2-46d6-addf-10296150bf52>2004-03-09 19:51:22 +0000
committerschnetter <schnetter@eec4d7dc-71c2-46d6-addf-10296150bf52>2004-03-09 19:51:22 +0000
commit63344a7ebbb1b34018dfd60001afbc03c549a575 (patch)
treeb7150449acdab2300ebbfc6f8bbad41ea9c54781 /src/Cartoon2D_tensors.h
parentae407aca63c86a9a4d7a5d94e602034cff3db3a8 (diff)
(Changes from Ian Hawke.)
Possibly use ENO interpolation. Useful e.g. for hydro where shocks may appear. To make Cartoon use the ENO interpolator you need an additional tags table entry. The same tags are used as for Carpet. Either tags='Prolongation="TVD"' or tags='Prolongation="ENO"' will work. The default (i.e., with no tag) is to use the standard Lagrange polynomials. The tags "Lagrange" and "None" will also do this. Also, any direct call to the Cartoon functions (BndCartoon2DVI etc.) will use Lagrange interpolation. Code from Burkhard Zink for interpolation; tags table stuff from me. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Cartoon2D/trunk@76 eec4d7dc-71c2-46d6-addf-10296150bf52
Diffstat (limited to 'src/Cartoon2D_tensors.h')
-rw-r--r--src/Cartoon2D_tensors.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Cartoon2D_tensors.h b/src/Cartoon2D_tensors.h
index 4d0092b..29c72ec 100644
--- a/src/Cartoon2D_tensors.h
+++ b/src/Cartoon2D_tensors.h
@@ -10,3 +10,7 @@
#define N_TENSORTYPE_SCALAR 1
#define N_TENSORTYPE_U 3
#define N_TENSORTYPE_DDSYM 6
+
+/* Prolongation methods */
+#define PROLONG_LAGRANGE 1
+#define PROLONG_ENO 2