aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/gdata.hh
diff options
context:
space:
mode:
authorschnetter <>2003-10-14 14:39:00 +0000
committerschnetter <>2003-10-14 14:39:00 +0000
commitfad00e54fbb8c02501d69318ad9a273bd426297a (patch)
treedec086d7cdf464cbb379c5488b7668c8f9b385f8 /Carpet/CarpetLib/src/gdata.hh
parent4aa9136c5d2e909262f1d8ff84e32e936be97a28 (diff)
Make gf and data objects store a Cactus variable index that this
Make gf and data objects store a Cactus variable index that this object is associated with. This can be used to access various kinds of information, e.g. variable names. darcs-hash:20031014143916-07bb3-678d114393008db7790b5ed72d6462673414c06a.gz
Diffstat (limited to 'Carpet/CarpetLib/src/gdata.hh')
-rw-r--r--Carpet/CarpetLib/src/gdata.hh10
1 files changed, 6 insertions, 4 deletions
diff --git a/Carpet/CarpetLib/src/gdata.hh b/Carpet/CarpetLib/src/gdata.hh
index 169a85757..75b12319e 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.17 2003/05/02 15:59:18 schnetter Exp $
+// $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/gdata.hh,v 1.18 2003/10/14 16:39:16 schnetter Exp $
#ifndef GDATA_HH
#define GDATA_HH
@@ -31,6 +31,8 @@ class gdata {
protected: // should be readonly
// Fields
+ int varindex; // Cactus variable index, or -1
+
bool _has_storage; // has storage associated (on some processor)
bool _owns_storage; // owns the storage
// (only valid if there is storage on this processor; it means that
@@ -42,17 +44,17 @@ protected: // should be readonly
ivect _shape, _stride; // shape and index order
ibbox _extent; // bbox for all data
-
+
public:
// Constructors
- gdata ();
+ gdata (const int varindex);
// Destructors
virtual ~gdata ();
// Pseudo constructors
- virtual gdata<D>* make_typed () const = 0;
+ virtual gdata<D>* make_typed (const int varindex) const = 0;
// Processor management
virtual void change_processor (const int newproc, void* const mem=0) = 0;