From a26de4a2faf52a12fab2496974d2aafe43674c7a Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Wed, 11 Feb 2015 21:27:27 +0100 Subject: [PATCH] Fixed compilation error in HDF5 --- src/fourier/details/euclidian_maps.hpp | 6 +++--- src/hdf5_array.hpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fourier/details/euclidian_maps.hpp b/src/fourier/details/euclidian_maps.hpp index 1e82a90..2e6d5bb 100644 --- a/src/fourier/details/euclidian_maps.hpp +++ b/src/fourier/details/euclidian_maps.hpp @@ -179,9 +179,9 @@ namespace CosmoTool assert(dk.size() == indata.num_dimensions()); plane_size = 1; alleven = true; - for (int q = 1; q < indims.size(); q++) { - plane_size *= m_dims[q]; - alleven = alleven && ((indims[q]%2)==0); + for (int q = 1; q < this->m_dims.size(); q++) { + plane_size *= this->m_dims[q]; + alleven = alleven && ((this->m_dims[q]%2)==0); } } diff --git a/src/hdf5_array.hpp b/src/hdf5_array.hpp index 68c3dcb..98ea28f 100644 --- a/src/hdf5_array.hpp +++ b/src/hdf5_array.hpp @@ -150,7 +150,7 @@ namespace CosmoTool { template void hdf5_write_array(H5::CommonFG& fg, const std::string& data_set_name, const ArrayType& data ) { - typedef typename ArrayType::value_type T; + typedef typename ArrayType::element T; get_hdf5_data_type hdf_data_type; hdf5_write_array(fg, data_set_name, data, hdf_data_type.type());