<div dir="ltr"><div><div><br></div>Dear Juan<br><br></div>I will try to answer below.<br><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 22, 2014 at 7:13 PM, Juan J. Meléndez <span dir="ltr"><<a href="mailto:melendez@unex.es" target="_blank">melendez@unex.es</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div dir="ltr">
<div style="font-size:12pt;font-family:'Calibri';color:rgb(0,0,0)">
<div>Dear all:</div>
<div> </div>
<div>I am playing with the examples for LDA+U. I think that understand that the 
eigenvalues and eigenvectors refer to the occupation matrix, which is calculated 
from the projections onto the proper states of the atom for which U correction 
is to be applied. However, there are two issues which are confusing to me:</div>
<div> </div>
<div>1) If I diagonalize occupation matrix externally to QE, I do get the same 
eigenvalues, but quite different eigenvectors, beyond numerical errors, I think. 
Could anybody explain to my why does this happen?</div></div></div></div></blockquote><div><br><br></div><div>Maybe you have some degeneracies? If so, any linear combination of eigenvectors corresponding to the same eigenvalue, is also an eigenvector for the same eigenvalue. I believe that diagonalization routines always provide orthonormal eigenvectors but in the eigenspace of degenerate eigenvalues the phase is arbitrary and can change with the specific routine, machine, compiler, etc.<br>
</div><div><br><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div style="font-size:12pt;font-family:'Calibri';color:rgb(0,0,0)">

<div> </div>
<div>2) Suppose that I need to use the “starting_ns_eigenvalue” option to 
correct unreallistic occupations. For that, I have a look at the eigenvalues of 
the occupation matrix at convergence. However, since the occupation matrix 
changes during the calculation (because the d states, say, may mix together), 
the eigenvectors also do. It means that, despite I may know which occupation is 
unphysical at convergence, I cannot know what was the corresponding eigenvalue 
at the first iteration. Am I right? If so, how can I apply 
“starting_ns_eigenvalue” correctly?</div></div></div></div></blockquote><div><br><br></div><div>you can try to restart the calculation from the one that produces the occupation matrix you don't like, having the code reading the potential from it. It should read also the occupations in this case. However setting starting_ns_eigenvalue might not be effective in this case because in electrons.f90 the code is does not allow you to change the occupations if you are reading them from file. <br>
</div><div>Anyway, if you know the eigenvector you want to change the occupation of, and that eigenvector appears also after the first iteration of the scf cycle, then you are safe. keep in mind that starting_ns_eigenvalue changes the occupation matrix eigenvalues only after the first iteration.<br>
</div><div><br></div><div>regards,<br></div><div><br></div><div>Matteo<br><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">
<div dir="ltr"><div style="font-size:12pt;font-family:'Calibri';color:rgb(0,0,0)">
<div> </div>
<div>Thanks in advance.</div>
<div> </div>
<div>Juanjo</div>
<div> </div>
<div style="font-size:12pt;font-family:'Calibri';color:rgb(0,0,0)">Juan J. 
Meléndez <br>Associate Professor<br>Department of Physics · University of 
Extremadura<br>Avda. de Elvas, s/n 06006 Badajoz (Spain)<br>Phone: +34 924 28 96 
55<br>Fax: <a href="tel:%2B34%20924%2028%2096%2051" value="+34924289651" target="_blank">+34 924 28 96 51</a><br>Email: <a href="mailto:melendez@unex.es" target="_blank">melendez@unex.es</a><br>Web: 
<a href="http://materiales.unex.es/miembros/personal/jj-melendez/Index.html" target="_blank">http://materiales.unex.es/miembros/personal/jj-melendez/Index.html</a></div></div></div>
<br><br>
<hr style="border:medium none;color:rgb(144,144,144);background-color:rgb(176,176,176);min-height:1px;width:99%">
<table style="border-collapse:collapse;border:medium none">
        <tbody><tr>
                <td style="border:medium none;padding:0px 15px 0px 8px">
                        <a href="http://www.avast.com/" target="_blank">
                                <img src="http://static.avast.com/emails/avast-mail-stamp.png" border="0">
                        </a>
                </td>
                <td>
                        <p style="color:rgb(61,77,90);font-family:"Calibri","Verdana","Arial","Helvetica";font-size:12pt">
                                Este mensaje no contiene virus ni malware porque la protección de <a href="http://www.avast.com/" target="_blank">avast! Antivirus</a> está activa.
                        </p>
                </td>
        </tr>
</tbody></table>
<br>
</div>
<br>_______________________________________________<br>
Pw_forum mailing list<br>
<a href="mailto:Pw_forum@pwscf.org">Pw_forum@pwscf.org</a><br>
<a href="http://pwscf.org/mailman/listinfo/pw_forum" target="_blank">http://pwscf.org/mailman/listinfo/pw_forum</a><br></blockquote></div><br></div></div></div></div>