Fixed compilation error in HDF5
This commit is contained in:
parent
ebaf13e336
commit
a26de4a2fa
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -150,7 +150,7 @@ namespace CosmoTool {
|
||||
template<typename ArrayType>
|
||||
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<T> hdf_data_type;
|
||||
|
||||
hdf5_write_array(fg, data_set_name, data, hdf_data_type.type());
|
||||
|
Loading…
Reference in New Issue
Block a user