From f59392068ea0552c6d60131f4a6b22c3712c25a4 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Fri, 12 Jan 2007 19:26:00 +0000 Subject: 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 --- CarpetDev/CarpetIOF5/src/utils.cc | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'CarpetDev') 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 const & value); +#endif + template + void + write_or_check_attribute (hid_t where, + char const * name, + vect const & value); template void write_or_check_attribute (hid_t where, -- cgit v1.2.3