Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[h5] Store additional member variables when storing solver object #116

Merged
merged 1 commit into from
Jul 31, 2019

Conversation

Wentzell
Copy link
Member

-Store additionally the following members together with the solver object
h_diag, _h_loc, _density_matrix, _average_sign, _solve_status, Delta_infty_vec
-TODO: move the histogram members pert_order, pert_order_total
and performance_analysis into the container_set class as std::optional
and add them to the corresponding h5_read/h5_write

This PR fixes Issue #115

…TRIQS#115

-Store additionally the following members:
 h_diag, _h_loc, _density_matrix, _average_sign, _solve_status, Delta_infty_vec
-TODO: move the histogram members pert_order, pert_order_total
 and performance_analysis into the container_set class as std::optional
 and add them to the corresponding h5_read/h5_write
@Wentzell Wentzell requested a review from HugoStrand July 30, 2019 18:12
Copy link
Member

@HugoStrand HugoStrand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dear Nils,

Thank you for the pull request! and for the nice h5_try_read() helper function. This should solve some of the headaches of storing cthyb to h5.

(Unfortunately the python layer of the solver still adds additional member parameters that are not stored when serializing to h5, but I do not know how to solve that.)

I am merging this.

Cheers, Hugo

@@ -52,7 +52,7 @@ namespace triqs_cthyb {
h5_read(grp, "G_tau", c.G_tau);
h5_read(grp, "G_tau_accum", c.G_tau_accum);
h5_read(grp, "G_l", c.G_l);
if( grp.has_key("O_tau") ) h5_read(grp, "O_tau", c.O_tau);
h5_try_read(grp, "O_tau", c.O_tau);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! This helper function is very very nice! 👍

@HugoStrand HugoStrand merged commit 464c045 into TRIQS:unstable Jul 31, 2019
@Wentzell Wentzell deleted the PR_H5IO branch August 6, 2019 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants