Skip to content

Commit

Permalink
Restore backward compatible h5::read calls dlr, dlr_imfreq, dlr_imtime,
Browse files Browse the repository at this point in the history
Fix #946
  • Loading branch information
Wentzell committed Jun 28, 2024
1 parent 706967b commit 86a7993
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion c++/triqs/mesh/dlr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,8 @@ namespace triqs::mesh {
auto statistic = (h5::read<std::string>(gr, "statistic") == "F" ? Fermion : Boson);
auto w_max = h5::read<double>(gr, "w_max");
auto eps = h5::read<double>(gr, "eps");
auto symmetrize = h5::read<bool>(gr, "symmetrize");
bool symmetrize = false;
h5::try_read(gr, "symmetrize", symmetrize);
auto _dlr_freq = h5::read<nda::vector<double>>(gr, "dlr_freq");
auto _dlr_it = h5::read<cppdlr::imtime_ops>(gr, "dlr_it");
auto _dlr_if = h5::read<cppdlr::imfreq_ops>(gr, "dlr_if");
Expand Down
3 changes: 2 additions & 1 deletion c++/triqs/mesh/dlr_imfreq.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ namespace triqs::mesh {
auto statistic = (h5::read<std::string>(gr, "statistic") == "F" ? Fermion : Boson);
auto w_max = h5::read<double>(gr, "w_max");
auto eps = h5::read<double>(gr, "eps");
auto symmetrize = h5::read<bool>(gr, "symmetrize");
bool symmetrize = false;
h5::try_read(gr, "symmetrize", symmetrize);
auto _dlr_freq = h5::read<nda::vector<double>>(gr, "dlr_freq");
auto _dlr_it = h5::read<cppdlr::imtime_ops>(gr, "dlr_it");
auto _dlr_if = h5::read<cppdlr::imfreq_ops>(gr, "dlr_if");
Expand Down
3 changes: 2 additions & 1 deletion c++/triqs/mesh/dlr_imtime.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ namespace triqs::mesh {
auto statistic = (h5::read<std::string>(gr, "statistic") == "F" ? Fermion : Boson);
auto w_max = h5::read<double>(gr, "w_max");
auto eps = h5::read<double>(gr, "eps");
auto symmetrize = h5::read<bool>(gr, "symmetrize");
bool symmetrize = false;
h5::try_read(gr, "symmetrize", symmetrize);
auto _dlr_freq = h5::read<nda::vector<double>>(gr, "dlr_freq");
auto _dlr_it = h5::read<cppdlr::imtime_ops>(gr, "dlr_it");
auto _dlr_if = h5::read<cppdlr::imfreq_ops>(gr, "dlr_if");
Expand Down

0 comments on commit 86a7993

Please sign in to comment.