aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetIOScalar/src
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2010-02-13 18:33:30 -0600
committerBarry Wardell <barry.wardell@gmail.com>2011-12-14 16:45:26 +0000
commit3b52b3721d634461b2d3840db16735b78a4a8cad (patch)
treebf192abc623573e7124f3810a7336d1f85fe3c54 /Carpet/CarpetIOScalar/src
parent23a591ba88475bf0842257215f04c9f76a1c3fc4 (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/CarpetIOScalar/src')
-rw-r--r--Carpet/CarpetIOScalar/src/ioscalar.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/Carpet/CarpetIOScalar/src/ioscalar.cc b/Carpet/CarpetIOScalar/src/ioscalar.cc
index 02f975d6a..382330d60 100644
--- a/Carpet/CarpetIOScalar/src/ioscalar.cc
+++ b/Carpet/CarpetIOScalar/src/ioscalar.cc
@@ -21,6 +21,8 @@
#include "carpet.hh"
#include "CarpetTimers.hh"
+#include "typeprops.hh"
+
// That's a hack
@@ -397,7 +399,7 @@ namespace CarpetIOScalar {
union {
#define TYPECASE(N,T) T var_##T;
-#include "carpet_typecase.hh"
+#include "typecase.hh"
#undef TYPECASE
} result;
@@ -422,12 +424,12 @@ namespace CarpetIOScalar {
if (CCTK_MyProc(cctkGH)==0) {
file << " ";
- switch (vartype) {
+ switch (specific_cactus_type(vartype)) {
#define TYPECASE(N,T) \
case N: \
file << result.var_##T; \
break;
-#include "carpet_typecase.hh"
+#include "typecase.hh"
#undef TYPECASE
default:
UnsupportedVarType (n);