3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-25 13:53:40 +01:00

Fix wrong commit 068c4a1

The fix in simple_read_write was wrong. This should be correct now.
This commit is contained in:
Michel Ferrero 2014-05-21 00:28:40 +02:00
parent ccc17bbb4e
commit e377522879
2 changed files with 2 additions and 2 deletions

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 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) { template <typename A> void read_array(h5::group g, std::string const& name, A&& a, bool C_reorder = true) {
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))); resize_or_check(a, mini_vector<size_t, std::c14::decay_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) { if (C_reorder) {
{ {
// read_array(g, name, make_cache(a).view(), false); // read_array(g, name, make_cache(a).view(), false);

View File

@ -7,7 +7,7 @@
#include <triqs/utility/exceptions.hpp> #include <triqs/utility/exceptions.hpp>
#pragma clang diagnostic ignored "-Wdeprecated-writable-strings" #pragma clang diagnostic ignored "-Wdeprecated-writable-strings"
#pragma GCC diagnostic ignored "-Wdeprecated-writable-strings" #pragma GCC diagnostic ignored "-Wwrite-strings"
// I can use the trace in triqs::exception // I can use the trace in triqs::exception
#define CATCH_AND_RETURN(MESS,RET)\ #define CATCH_AND_RETURN(MESS,RET)\