diff options
author | Erik Schnetter <schnetter@aei.mpg.de> | 2005-01-01 18:22:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@aei.mpg.de> | 2005-01-01 18:22:00 +0000 |
commit | 2a38d7eb6a6db8b150a9f6fd5f1c844b8d0ef74a (patch) | |
tree | 1c5e763b0ffee9744ee708d6016bdbd36b8f8312 /Carpet/Carpet/src/variables.hh | |
parent | 049cec8e042a508511fdb0f0948de63f84f9b8be (diff) |
global: Turn CarpetLib templates into classes
Turn most of the templates in CarpetLib, which used to have the form
template<int D> class XXX
into classes, i.e., into something like
class XXX
by setting D to the new global integer constant dim, which in turn is set to 3.
The templates gf and data, which used to be of the form
template<typename T, int D> class XXX
are now of the form
template<typename T> class XXX
The templates vect, bbox, and bboxset remain templates.
This change simplifies the code somewhat.
darcs-hash:20050101182234-891bb-c3063528841f0d078b12cc506309ea27d8ce730d.gz
Diffstat (limited to 'Carpet/Carpet/src/variables.hh')
-rw-r--r-- | Carpet/Carpet/src/variables.hh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Carpet/Carpet/src/variables.hh b/Carpet/Carpet/src/variables.hh index cdf8567a2..ae5ade6df 100644 --- a/Carpet/Carpet/src/variables.hh +++ b/Carpet/Carpet/src/variables.hh @@ -108,9 +108,9 @@ namespace Carpet { // Data for grid functions // The grid hierarchy - extern vector<gh<dim>*> vhh; // [map] - extern vector<dh<dim>*> vdd; // [map] - extern vector<th<dim>*> vtt; // [map] + extern vector<gh*> vhh; // [map] + extern vector<dh*> vdd; // [map] + extern vector<th*> vtt; // [map] // Data for the groups struct groupdesc { @@ -122,10 +122,10 @@ namespace Carpet { // Data for everything struct arrdesc { // points to hh etc. for GF, and is unique for SCALAR and ARRAY - gh<dim>* hh; - dh<dim>* dd; - th<dim>* tt; - vector<ggf<dim>*> data; // [var] + gh* hh; + dh* dd; + th* tt; + vector<ggf*> data; // [var] }; extern vector<vector<arrdesc> > arrdata; // [group][map] |