Added support for detecting if the normal_complex branch is in use#6
Merged
Conversation
Member
Author
|
Hey @krivenko , one question since you are already in the process of remaking the pomerol data. Alexander told me he couldn't have imaginary parts of the delta function on the real axis, which by the way the coded works was understandable. I have added the possibility of adding a bit of broadening, but if I do so the tests fail. By any chance, do you check delta on the real axis, and if yo do you set im(zeta) to zero? |
Collaborator
In all my tests the broadening is finite. def _make_gf(self, ed_func, real_freq, anomalous) -> BlockGf:
if anomalous:
if ed.get_ed_mode() != int(EDMode.SUPERC):
raise RuntimeError("anomalous = True is only supported for "
"superconducting bath")
if real_freq:
mesh = MeshReFreq(window=(ed.wini, ed.wfin), n_w=ed.Lreal)
z_vals = np.asarray([complex(z) + ed.eps * 1j for z in mesh])
else:
mesh = MeshImFreq(beta=ed.beta, S="Fermion", n_iw=ed.Lmats)
z_vals = np.asarray([complex(z) for z in mesh])
with chdircontext(self.wdname):
data = ed_func(z_vals, typ='a' if anomalous else 'n') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.