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());