aboutsummaryrefslogtreecommitdiff
path: root/CarpetDev
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2007-01-12 19:26:00 +0000
committerErik Schnetter <schnetter@cct.lsu.edu>2007-01-12 19:26:00 +0000
commitf59392068ea0552c6d60131f4a6b22c3712c25a4 (patch)
treed7ce5bb3c91f1b4c47b7967744eaff71ae519cd2 /CarpetDev
parent15dd19f68bf5ae380b9ae47c9c0214496372e5c4 (diff)
CarpetIOF5: Instantiate functions correctly when int and CCTK_INT differ
Instantiate certain functions for both int and CCTK_INT if these are different types. darcs-hash:20070112192605-dae7b-45f313c7c3d3cb9319dc23270210c89b51ebf831.gz
Diffstat (limited to 'CarpetDev')
-rw-r--r--CarpetDev/CarpetIOF5/src/utils.cc22
1 files changed, 22 insertions, 0 deletions
diff --git a/CarpetDev/CarpetIOF5/src/utils.cc b/CarpetDev/CarpetIOF5/src/utils.cc
index ea9d30d91..6bad1510a 100644
--- a/CarpetDev/CarpetIOF5/src/utils.cc
+++ b/CarpetDev/CarpetIOF5/src/utils.cc
@@ -272,12 +272,20 @@ namespace CarpetIOF5 {
}
}
+#if SIZEOF_INT != CCTK_INTEGER_PRECISION
template
void
write_or_check_attribute (hid_t const where,
char const * const name,
int const * const values,
int const num_values);
+#endif
+ template
+ void
+ write_or_check_attribute (hid_t const where,
+ char const * const name,
+ CCTK_INT const * const values,
+ int const num_values);
template
void
write_or_check_attribute (hid_t const where,
@@ -299,11 +307,18 @@ namespace CarpetIOF5 {
write_or_check_attribute (where, name, & value, 1);
}
+#if SIZEOF_INT != CCTK_INTEGER_PRECISION
template
void
write_or_check_attribute (hid_t const where,
char const * const name,
int const & value);
+#endif
+ template
+ void
+ write_or_check_attribute (hid_t const where,
+ char const * const name,
+ CCTK_INT const & value);
template
void
write_or_check_attribute (hid_t const where,
@@ -324,11 +339,18 @@ namespace CarpetIOF5 {
write_or_check_attribute (where, name, & value [0], D);
}
+#if SIZEOF_INT != CCTK_INTEGER_PRECISION
template
void
write_or_check_attribute (hid_t where,
char const * name,
vect<int, dim> const & value);
+#endif
+ template
+ void
+ write_or_check_attribute (hid_t where,
+ char const * name,
+ vect<CCTK_INT, dim> const & value);
template
void
write_or_check_attribute (hid_t where,