#ifndef UTILS_HH #define UTILS_HH #include #include "cctk.h" #include "vect.hh" namespace CarpetIOF5 { namespace F5 { hid_t hdf5_datatype_from_dummy (signed char const & dummy); hid_t hdf5_datatype_from_dummy (short const & dummy); hid_t hdf5_datatype_from_dummy (int const & dummy); hid_t hdf5_datatype_from_dummy (long const & dummy); hid_t hdf5_datatype_from_dummy (long long const & dummy); hid_t hdf5_datatype_from_dummy (float const & dummy); hid_t hdf5_datatype_from_dummy (double const & dummy); hid_t hdf5_datatype_from_dummy (long double const & dummy); #ifdef HAVE_CCTK_COMPLEX8 hid_t hdf5_datatype_from_dummy (CCTK_COMPLEX8 const & dummy); #endif #ifdef HAVE_CCTK_COMPLEX16 hid_t hdf5_datatype_from_dummy (CCTK_COMPLEX16 const & dummy); #endif #ifdef HAVE_CCTK_COMPLEX32 hid_t hdf5_datatype_from_dummy (CCTK_COMPLEX32 const & dummy); #endif template hid_t hdf5_complex_datatype_from_dummy (T const & dummy, R const & real); hid_t hdf5_datatype_from_cactus_datatype (int cactus_datatype); template string name_from_ivect (vect const & ivect); template string name_from_ibbox (bbox const & ibbox); hid_t open_or_create_group (hid_t where, char const * name); template void write_or_check_attribute (hid_t where, char const * name, T const * values, int num_values); template void write_or_check_attribute (hid_t where, char const * name, T const & value); template void write_or_check_attribute (hid_t where, char const * name, vect const & value); } // namespace F5 } // namespace CarpetIOF5 #endif // #ifndef UTILS_HH