diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2010-02-13 18:33:30 -0600 |
---|---|---|
committer | Barry Wardell <barry.wardell@gmail.com> | 2011-12-14 16:45:26 +0000 |
commit | 3b52b3721d634461b2d3840db16735b78a4a8cad (patch) | |
tree | bf192abc623573e7124f3810a7336d1f85fe3c54 /Carpet/Carpet/src/Storage.cc | |
parent | 23a591ba88475bf0842257215f04c9f76a1c3fc4 (diff) |
Combine CarpetLib's INSTANTIATE and Carpet's TYPECASE mechanism into a
single mechanism provided by CarpetLib.
Use this mechanism everywhere.
Diffstat (limited to 'Carpet/Carpet/src/Storage.cc')
-rw-r--r-- | Carpet/Carpet/src/Storage.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Carpet/Carpet/src/Storage.cc b/Carpet/Carpet/src/Storage.cc index 636247d20..b6ff7e82b 100644 --- a/Carpet/Carpet/src/Storage.cc +++ b/Carpet/Carpet/src/Storage.cc @@ -8,6 +8,7 @@ #include <dh.hh> #include <gf.hh> #include <operators.hh> +#include <typeprops.hh> #include <carpet.hh> @@ -158,7 +159,7 @@ namespace Carpet { const int varindex = firstvarindex + var; #warning "TODO: allocate these in SetupGH, and after recomposing" if (not arrdata.AT(group).AT(m).data.AT(var)) { - switch (gp.vartype) { + switch (specific_cactus_type(gp.vartype)) { #define TYPECASE(N,T) \ case N: \ arrdata.AT(group).AT(m).data.AT(var) = new gf<T> \ @@ -169,7 +170,7 @@ namespace Carpet { prolongation_order_time, \ vectorlength, vectorindex, (gf<T>*)vectorleader); \ break; -#include "typecase" +#include "typecase.hh" #undef TYPECASE default: UnsupportedVarType (varindex); |