aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/gdata.hh
diff options
context:
space:
mode:
authorhawke <>2003-10-15 05:14:00 +0000
committerhawke <>2003-10-15 05:14:00 +0000
commit376c983ecf4e2c724085d4953a04ad5c317f7390 (patch)
tree342ade9c841eb0b684ad01a20ba57b279df0348c /Carpet/CarpetLib/src/gdata.hh
parentfad00e54fbb8c02501d69318ad9a273bd426297a (diff)
The prolongation method can now be controlled from the tags table defined in the interface.ccl. The prolongation method defaults to "Lagrange" and the other options are "None" and "TVD" (which I'm now sure doesn't work properly).
The prolongation method can now be controlled from the tags table defined in the interface.ccl. The prolongation method defaults to "Lagrange" and the other options are "None" and "TVD" (which I'm now sure doesn't work properly). As an example, from CartGrid3D: REAL coordinates type=GF tags='Prolongation="None"' { x, y, z, r } switches off prolongation for the coordinates. Also, a one off opportunity to marvel at C++ code that combines the worst features of Fortran with the worst features of C... darcs-hash:20031015051401-58737-870c23e54e58164a45ffe3438e393587b1cc670b.gz
Diffstat (limited to 'Carpet/CarpetLib/src/gdata.hh')
-rw-r--r--Carpet/CarpetLib/src/gdata.hh6
1 files changed, 5 insertions, 1 deletions
diff --git a/Carpet/CarpetLib/src/gdata.hh b/Carpet/CarpetLib/src/gdata.hh
index 75b12319e..edc08c8e7 100644
--- a/Carpet/CarpetLib/src/gdata.hh
+++ b/Carpet/CarpetLib/src/gdata.hh
@@ -1,4 +1,4 @@
-// $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/gdata.hh,v 1.18 2003/10/14 16:39:16 schnetter Exp $
+// $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/gdata.hh,v 1.19 2003/10/15 07:14:01 hawke Exp $
#ifndef GDATA_HH
#define GDATA_HH
@@ -67,6 +67,10 @@ public:
virtual void free () = 0;
// Accessors
+
+ int var_index () const {
+ return varindex;
+ }
bool has_storage () const {
return _has_storage;