Commit 5496c9ce authored by Henning Janssen's avatar Henning Janssen

Added error message in add_selfen if occupations are to small

parent 00aa4329
......@@ -124,9 +124,11 @@ MODULE m_add_selfen
!Sanity check for the maximum occupation
IF(n_max-2*ns.GT.1) THEN
!These oscillations seem to emerge when the lorentzian smoothing is done inadequately
CALL juDFT_error("Something went wrong with the addition of the selfenergy",calledby="add_selfen")
CALL juDFT_error("Something went wrong with the addition of the selfenergy: n_max>>ns",calledby="add_selfen")
ENDIF
IF(n_max-n_target.LT.0.0) CALL juDFT_error("Something went wrong with the addition of the selfenergy: n_max<n_target",calledby="add_selfen")
!Set up the interval for the bisection method (mu_max,mu_b)
mu_a = mu_max
DO
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment