3
0
mirror of https://github.com/triqs/dft_tools synced 2024-10-31 11:13:46 +01:00

Fix a bug in simple_read_write.hpp

This commit is contained in:
Michel Ferrero 2014-05-20 18:08:28 +02:00
parent dd91c51647
commit 068c4a116d

View File

@ -74,7 +74,7 @@ namespace arrays {
template <typename T> void read_array_impl(h5::group g, std::string const& name, T* start, array_stride_info info);
template <typename A> void read_array(h5::group g, std::string const& name, A&& a, bool C_reorder = true) {
resize_or_check(a, get_array_lengths(a.rank, g, name, triqs::is_complex<typename std::c14::decay_t<A>::value_type>::value));
resize_or_check(a, mini_vector<size_t,a.rank> (get_array_lengths(a.rank, g, name, triqs::is_complex<typename std::c14::decay_t<A>::value_type>::value)));
if (C_reorder) {
{
// read_array(g, name, make_cache(a).view(), false);