Commit 78239d62 authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

fix linking error hdf5_tools

parent 2a3c07e2
......@@ -3,6 +3,63 @@
#include <cfloat>
#include <climits>
template <> hid_t hdf5_tools::hdf5_type_id<char>()
{
return H5T_NATIVE_CHAR;
}
template <> hid_t hdf5_tools::hdf5_type_id<signed char>()
{
return H5T_NATIVE_SCHAR;
}
template <> hid_t hdf5_tools::hdf5_type_id<unsigned char>()
{
return H5T_NATIVE_UCHAR;
}
template <> hid_t hdf5_tools::hdf5_type_id<short>()
{
return H5T_NATIVE_SHORT;
}
template <> hid_t hdf5_tools::hdf5_type_id<unsigned short>()
{
return H5T_NATIVE_USHORT;
}
template <> hid_t hdf5_tools::hdf5_type_id<int>()
{
return H5T_NATIVE_INT;
}
template <> hid_t hdf5_tools::hdf5_type_id<unsigned>()
{
return H5T_NATIVE_UINT;
}
template <> hid_t hdf5_tools::hdf5_type_id<long>()
{
return H5T_NATIVE_LONG;
}
template <> hid_t hdf5_tools::hdf5_type_id<unsigned long>()
{
return H5T_NATIVE_ULONG;
}
template <> hid_t hdf5_tools::hdf5_type_id<long long>()
{
return H5T_NATIVE_LLONG;
}
template <> hid_t hdf5_tools::hdf5_type_id<unsigned long long>()
{
return H5T_NATIVE_ULLONG;
}
template <> hid_t hdf5_tools::hdf5_type_id<float>()
{
return H5T_NATIVE_FLOAT;
}
template <> hid_t hdf5_tools::hdf5_type_id<double>()
{
return H5T_NATIVE_DOUBLE;
}
template <> hid_t hdf5_tools::hdf5_type_id<long double>()
{
return H5T_NATIVE_LDOUBLE;
}
int hdf5_tools::require_size_single_dataset(hid_t dset, int tsize)
{
TIMEZONE("hdf5_tools::require_size_single_dataset");
......@@ -360,3 +417,9 @@ int hdf5_tools::write_value_with_single_rank<double>(
const std::string dset_name,
const double value);
template
int hdf5_tools::write_particle_ID_pairs_with_single_rank(
const std::vector<long long> v,
const hid_t group,
const std::string dset_name);
......@@ -35,62 +35,6 @@ namespace hdf5_tools
{
// see https://support.hdfgroup.org/HDF5/doc/H5.user/Datatypes.html
template <typename data_type> hid_t hdf5_type_id();
template <> hid_t hdf5_type_id<char>()
{
return H5T_NATIVE_CHAR;
}
template <> hid_t hdf5_type_id<signed char>()
{
return H5T_NATIVE_SCHAR;
}
template <> hid_t hdf5_type_id<unsigned char>()
{
return H5T_NATIVE_UCHAR;
}
template <> hid_t hdf5_type_id<short>()
{
return H5T_NATIVE_SHORT;
}
template <> hid_t hdf5_type_id<unsigned short>()
{
return H5T_NATIVE_USHORT;
}
template <> hid_t hdf5_type_id<int>()
{
return H5T_NATIVE_INT;
}
template <> hid_t hdf5_type_id<unsigned>()
{
return H5T_NATIVE_UINT;
}
template <> hid_t hdf5_type_id<long>()
{
return H5T_NATIVE_LONG;
}
template <> hid_t hdf5_type_id<unsigned long>()
{
return H5T_NATIVE_ULONG;
}
template <> hid_t hdf5_type_id<long long>()
{
return H5T_NATIVE_LLONG;
}
template <> hid_t hdf5_type_id<unsigned long long>()
{
return H5T_NATIVE_ULLONG;
}
template <> hid_t hdf5_type_id<float>()
{
return H5T_NATIVE_FLOAT;
}
template <> hid_t hdf5_type_id<double>()
{
return H5T_NATIVE_DOUBLE;
}
template <> hid_t hdf5_type_id<long double>()
{
return H5T_NATIVE_LDOUBLE;
}
int grow_single_dataset(
hid_t dset,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment