Skip to content

Commit

Permalink
Minor formatting improvements of tail_fit warnings / delta_infty error
Browse files Browse the repository at this point in the history
  • Loading branch information
Wentzell committed Mar 27, 2019
1 parent 6ccdf2f commit b39f3f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions c++/triqs_cthyb/solver_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ namespace triqs_cthyb {
// Compute 0th moment of one block
[](gf_const_view<imfreq> d) {
auto [tail, err] = fit_hermitian_tail(d);
if (err > 1e-8) std::cerr << "WARNING: Big error in tailfit";
if (err > 1e-8) std::cerr << "WARNING: Big error in tailfit. The least-square error is " << err << "\n";
auto Delta_infty = matrix<dcomplex>{tail(0, ellipsis())};
#ifndef HYBRIDISATION_IS_COMPLEX
double imag_Delta = max_element(abs(imag(Delta_infty)));
if (imag_Delta > 1e-6) TRIQS_RUNTIME_ERROR << "Delta(infty) is not real. Maximum imaginary part is " << imag_Delta;
if (imag_Delta > 1e-6) TRIQS_RUNTIME_ERROR << "Delta(infty) is not real. Maximum imaginary part is " << imag_Delta << "\n";
#endif
return Delta_infty;
},
Expand Down

0 comments on commit b39f3f9

Please sign in to comment.