mirror of
https://github.com/triqs/dft_tools
synced 2024-12-26 06:14:14 +01:00
Fix wrong commit 068c4a1
The fix in simple_read_write was wrong. This should be correct now.
This commit is contained in:
parent
ccc17bbb4e
commit
e377522879
@ -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);
|
||||||
|
@ -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)\
|
||||||
|
Loading…
Reference in New Issue
Block a user