<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Dear Matteo<br>I used your comment and followed&nbsp;&nbsp; your example for NiO and I succeed&nbsp; to get U for TiO2. But in file Ur16.out I see three column . The first is number of atom in supercell , second is U value for Ni atom and I don,t know&nbsp; the third? does the third belong to&nbsp; U value for Oxygen or not? Because the third column kas big value?<br><br><br>another question is for isolated atom Hubbard parameter. What do you expect about the value of U for Isolated atom? Is this big value (greater than 10 eV) or&nbsp; it would be tiny value?<br>should we choose for running the script for isolated atom only gamma point or we have to choose a fine mesh?<br>thanks a lot<br><br><br>Ali <span><span>Kazempour</span></span><br>
Physics department, Isfahan University of Technology<br>
84156 Isfahan, Iran.            Tel-1:  +98 311 391 3733<br>
Fax: +98 311 391 2376      Tel-2:  +98 311 391 2375<br><br>--- On <b>Sun, 8/2/09, Matteo Cococcioni <i>&lt;matteo@umn.edu&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Matteo Cococcioni &lt;matteo@umn.edu&gt;<br>Subject: Re: [Pw_forum] occupation<br>To: "PWSCF Forum" &lt;pw_forum@pwscf.org&gt;<br>Date: Sunday, August 2, 2009, 8:31 AM<br><br><div class="plainMail"><br>Dear Ali,<br><br>1, -1, 0 are just spin indexes to tell the code what is the relative <br>magnetization of the atoms (parallel, antiparallel, or none). if<br>your system is non magnetic put all 0. or set magn = .false. and put <br>nothing.<br>you should look at the examples on Fe and Si as well and learn from <br>there by comparison.<br><br>Matteo<br><br><br><br>ali kazempour wrote:<br>&gt; Dear Matteo<br>&gt; I follow&nbsp; your link and is useful for me, but when I want to study a&nbsp; <br>&gt; nonmagnetic
 material like Tio2 ,how do I change the format of <br>&gt; pos_file.? for NiO it is in tutorial ,but NiO is antiferromagnetic and <br>&gt; in pos_nio.r16 you add a switch 1,-1 and 0 in front of atomic type. <br>&gt; but for TiO2, it is nonmagnetic. How can I define the differnet type?<br>&gt; thanks a lot<br>&gt;<br>&gt; Ali Kazempour<br>&gt; Physics department, Isfahan University of Technology<br>&gt; 84156 Isfahan, Iran. Tel-1: +98 311 391 3733<br>&gt; Fax: +98 311 391 2376 Tel-2: +98 311 391 2375<br>&gt;<br>&gt; --- On *Thu, 7/30/09, Matteo Cococcioni /&lt;<a ymailto="mailto:matteo@umn.edu" href="/mc/compose?to=matteo@umn.edu">matteo@umn.edu</a>&gt;/* wrote:<br>&gt;<br>&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;From: Matteo Cococcioni &lt;<a ymailto="mailto:matteo@umn.edu" href="/mc/compose?to=matteo@umn.edu">matteo@umn.edu</a>&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;Subject: Re: [Pw_forum] occupation<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;To: "PWSCF Forum" &lt;<a
 ymailto="mailto:pw_forum@pwscf.org" href="/mc/compose?to=pw_forum@pwscf.org">pw_forum@pwscf.org</a>&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;Date: Thursday, July 30, 2009, 11:18 AM<br>&gt;<br>&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;the new tutorial on the calculation of U can be downloaded from this<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;webpage:<br>&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;<a href="http://www.quantum-espresso.org/wiki/index.php/QESB09#First_week" target="_blank">http://www.quantum-espresso.org/wiki/index.php/QESB09#First_week</a><br>&gt;<br>&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;Matteo Cococcioni wrote:<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt; Dear Ali,<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt; on the wiki page of quantum-espresso you should be able to find<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;a new<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt; tutorial on the calculation of U. Please download it<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt; and run
 the scripts in there following the instructions.<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt; ali kazempour wrote:<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; Dear all<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; From Linear response calculation ,I get for TiO2 bulk U=5.73,<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;But when<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; I double the unit cell in z direction and again compute U ,I<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;get three<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; different value for Ti atoms.(U=5.63,5.46,5.70).<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt; what are these three values? I assume they
 are what you get with<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt; supercells of three different sizes. is this correct? if it is<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;the only<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt; strange thing is that the intermediate value is lower than the<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;other<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt; two. otherwise you got pretty nice convergence of U which is<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;what you<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt; want to achieve. Is there any particular reason (apart<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;computational<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt; cost) why you only enlarge the cell in z direction?<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; Why these values are not same . what is the main reason? Does<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;it in<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; numerical variation
 errors?<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; ANother question:<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; When we perturb D level by alpha, it give rise to change in d<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; occupancy . Is it correct that if we impose negative alpha , the<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; occupation becomes less than initial state .?<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt; no. positive alpha -- &gt; decrease in total n. but you need to<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;look at the<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt; right n....<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; for Ti isolated atom for apha=0.1&nbsp; tr[ns(na)] after<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;first-iteration<br>&gt;&nbsp;
 &nbsp;&nbsp;&nbsp;&gt;&gt; equal to the 0.002 and at the end of calculation is 2.327 while we<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; know that for Ti,&nbsp; tr[ns(na)] =2.000. Does it seems to be correct.?<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; &nbsp; &nbsp; Number of iteration with fixed ns =&nbsp; 0<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; &nbsp; &nbsp; Starting ns and Hubbard U :<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; enter write_ns<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; U( 1) =&nbsp; 0.0000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; alpha( 1) =&nbsp; 0.1000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; atom&nbsp; 1&nbsp;&nbsp;&nbsp;Tr[ns(na)]=&nbsp;&nbsp;&nbsp;2.0000000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; atom&nbsp; 1&nbsp; spin&nbsp; 1<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; eigenvalues:&nbsp; 0.4000000 0.4000000 0.4000000 0.4000000 0.4000000<br>&gt;&nbsp;
 &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; eigenvectors<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 1&nbsp;&nbsp;&nbsp;1.0000000&nbsp; 0.0000000&nbsp; 0.0000000&nbsp; 0.0000000&nbsp; 0.0000000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 2&nbsp;&nbsp;&nbsp;0.0000000&nbsp; 1.0000000&nbsp; 0.0000000&nbsp; 0.0000000&nbsp; 0.0000000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 3&nbsp;&nbsp;&nbsp;0.0000000&nbsp; 0.0000000&nbsp; 1.0000000&nbsp; 0.0000000&nbsp; 0.0000000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 4&nbsp;&nbsp;&nbsp;0.0000000&nbsp; 0.0000000&nbsp; 0.0000000&nbsp; 1.0000000&nbsp; 0.0000000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 5&nbsp;&nbsp;&nbsp;0.0000000&nbsp; 0.0000000&nbsp; 0.0000000&nbsp; 0.0000000&nbsp; 1.0000000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; occupations<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 0.400&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 0.000&nbsp;
 0.400&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 0.000&nbsp; 0.000&nbsp; 0.400&nbsp; 0.000&nbsp; 0.000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000&nbsp; 0.400&nbsp; 0.000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000&nbsp; 0.400<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; atom&nbsp; 1&nbsp; spin&nbsp; 2<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; eigenvalues:&nbsp; 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; eigenvectors<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 1&nbsp;&nbsp;&nbsp;1.0000000&nbsp; 0.0000000&nbsp; 0.0000000&nbsp; 0.0000000&nbsp; 0.0000000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 2&nbsp;&nbsp;&nbsp;0.0000000&nbsp; 1.0000000&nbsp; 0.0000000&nbsp; 0.0000000&nbsp; 0.0000000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 3&nbsp;&nbsp;&nbsp;0.0000000&nbsp; 0.0000000&nbsp;
 1.0000000&nbsp; 0.0000000&nbsp; 0.0000000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 4&nbsp;&nbsp;&nbsp;0.0000000&nbsp; 0.0000000&nbsp; 0.0000000&nbsp; 1.0000000&nbsp; 0.0000000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 5&nbsp;&nbsp;&nbsp;0.0000000&nbsp; 0.0000000&nbsp; 0.0000000&nbsp; 0.0000000&nbsp; 1.0000000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; occupations<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; nsum
 =&nbsp;&nbsp;&nbsp;2.0000000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; exit write_ns<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt; this is not the first iteration. this is what the initial guess<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;of the<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt; on-site occupations the code does to start the calculation<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; Atomic wfc used for LDA+U Projector are NOT orthogonalized<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; &nbsp; &nbsp; Starting wfc are&nbsp; &nbsp; 9 atomic +&nbsp; &nbsp; 1 random wfc<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; &nbsp; &nbsp; total cpu time spent up to now
 is&nbsp; &nbsp;&nbsp;&nbsp;13.34 secs<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; &nbsp; &nbsp; per-process dynamical memory:&nbsp;&nbsp;&nbsp;326.3 Mb<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; &nbsp; &nbsp; Self-consistent Calculation<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; &nbsp; &nbsp; iteration #&nbsp; 1&nbsp; &nbsp;&nbsp;&nbsp;ecut=&nbsp; &nbsp; 45.00 Ry&nbsp; &nbsp;&nbsp;&nbsp;beta=0.70<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; &nbsp; &nbsp; CG style diagonalization<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; &nbsp; &nbsp; c_bands:&nbsp; 3 eigenvalues not converged<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; &nbsp; &nbsp; c_bands:&nbsp; 2 eigenvalues not converged<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; &nbsp; &nbsp; ethr =&nbsp; 1.00E-12,&nbsp; avg # of iterations = 40.4<br>&gt;&nbsp;
 &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; enter write_ns<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; U( 1) =&nbsp; 0.0000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; alpha( 1) =&nbsp; 0.1000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; atom&nbsp; 1&nbsp;&nbsp;&nbsp;Tr[ns(na)]=&nbsp;&nbsp;&nbsp;0.0021401<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; atom&nbsp; 1&nbsp; spin&nbsp; 1<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; eigenvalues:&nbsp; 0.0000001 0.0000001 0.0000001 0.0009883 0.0009883<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; eigenvectors<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 1&nbsp;&nbsp;&nbsp;0.0000000 -0.8803392 -0.4743427&nbsp; 0.0000000&nbsp; 0.0013927<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 2&nbsp;&nbsp;&nbsp;0.0000000 -0.4743432&nbsp; 0.8803400&nbsp; 0.0000000 -0.0000040<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 3&nbsp;&nbsp;&nbsp;0.0000000&nbsp; 0.0012242&nbsp; 0.0006642&nbsp; 0.0000000&nbsp; 0.9999990<br>&gt;&nbsp;
 &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 4&nbsp; -0.8886820&nbsp; 0.0000000&nbsp; 0.0000000 -0.4585240&nbsp; 0.0000000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 5&nbsp;&nbsp;&nbsp;0.4585240&nbsp; 0.0000000&nbsp; 0.0000000 -0.8886820&nbsp; 0.0000000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; occupations<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 0.001&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000&nbsp; 0.001&nbsp; 0.000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;
 &nbsp;&nbsp;&nbsp;&gt; this is the first iteration! the problem is, in my opinion, that<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;you<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt; didn't start this calculation from wfc and potential saved from<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;the scf<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt; unperturbed run, but from scratch (that's why the code has to<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;make the<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt; initial guess for the n).<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt; regards,<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt; Matteo<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; ---------------------------------- and end of the file is<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; :<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; &nbsp; &nbsp; End of self-consistent calculation<br>&gt;&nbsp;
 &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; enter write_ns<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; U( 1) =&nbsp; 0.0000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; alpha( 1) =&nbsp; 0.1000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; atom&nbsp; 1&nbsp;&nbsp;&nbsp;Tr[ns(na)]=&nbsp;&nbsp;&nbsp;2.3270531<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; atom&nbsp; 1&nbsp; spin&nbsp; 1<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; eigenvalues:&nbsp; 0.1574294 0.1574294 0.1574294 0.9273825 0.9273825<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; eigenvectors<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 1&nbsp;&nbsp;&nbsp;0.0000000 -0.4359030 -0.7986559&nbsp; 0.0000000&nbsp; 0.4148945<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 2&nbsp;&nbsp;&nbsp;0.0000000&nbsp; 0.7269732 -0.0406891&nbsp; 0.0000000&nbsp; 0.6854592<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 3&nbsp;&nbsp;&nbsp;0.0000000 -0.5305643&nbsp; 0.6004109&nbsp; 0.0000000&nbsp; 0.5983379<br>&gt;&nbsp;
 &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 4&nbsp; -0.9258933&nbsp; 0.0000000&nbsp; 0.0000000 -0.3777851&nbsp; 0.0000000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 5&nbsp;&nbsp;&nbsp;0.3777851&nbsp; 0.0000000&nbsp; 0.0000000 -0.9258933&nbsp; 0.0000000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; occupations<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 0.927&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 0.000&nbsp; 0.157&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 0.000&nbsp; 0.000&nbsp; 0.157&nbsp; 0.000&nbsp; 0.000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000&nbsp; 0.927&nbsp; 0.000<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000&nbsp; 0.000&nbsp; 0.157<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; Ali Kazempour<br>&gt;&nbsp;
 &nbsp;&nbsp;&nbsp;&gt;&gt; Physics department, Isfahan University of Technology<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; 84156 Isfahan, Iran. Tel-1: +98 311 391 3733<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; Fax: +98 311 391 2376 Tel-2: +98 311 391 2375<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;------------------------------------------------------------------------<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; _______________________________________________<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; Pw_forum mailing list<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt; <a ymailto="mailto:Pw_forum@pwscf.org" href="/mc/compose?to=Pw_forum@pwscf.org">Pw_forum@pwscf.org</a> &lt;/mc/compose?to=<a ymailto="mailto:Pw_forum@pwscf.org" href="/mc/compose?to=Pw_forum@pwscf.org">Pw_forum@pwscf.org</a>&gt;<br>&gt;&nbsp;
 &nbsp;&nbsp;&nbsp;&gt;&gt; <a href="http://www.democritos.it/mailman/listinfo/pw_forum" target="_blank">http://www.democritos.it/mailman/listinfo/pw_forum</a><br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp;&nbsp;&nbsp;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;<br>&gt;<br>&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;-- <br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;Matteo Cococcioni<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;Department of Chemical Engineering and Materials Science,<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;University of Minnesota<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;421 Washington Av. SE<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;Minneapolis, MN 55455<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;Tel. +1 612 624 9056&nbsp; &nbsp; Fax +1 612 626 7246<br>&gt;&nbsp;
 &nbsp;&nbsp;&nbsp;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br>&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;_______________________________________________<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;Pw_forum mailing list<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;<a ymailto="mailto:Pw_forum@pwscf.org" href="/mc/compose?to=Pw_forum@pwscf.org">Pw_forum@pwscf.org</a> &lt;/mc/compose?to=<a ymailto="mailto:Pw_forum@pwscf.org" href="/mc/compose?to=Pw_forum@pwscf.org">Pw_forum@pwscf.org</a>&gt;<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;<a href="http://www.democritos.it/mailman/listinfo/pw_forum" target="_blank">http://www.democritos.it/mailman/listinfo/pw_forum</a><br>&gt;<br>&gt;<br>&gt; ------------------------------------------------------------------------<br>&gt;<br>&gt; _______________________________________________<br>&gt; Pw_forum mailing list<br>&gt; <a ymailto="mailto:Pw_forum@pwscf.org" href="/mc/compose?to=Pw_forum@pwscf.org">Pw_forum@pwscf.org</a><br>&gt; <a
 href="http://www.democritos.it/mailman/listinfo/pw_forum" target="_blank">http://www.democritos.it/mailman/listinfo/pw_forum</a><br>&gt;&nbsp;&nbsp;&nbsp;<br><br><br>-- <br>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br>Matteo Cococcioni<br>Department of Chemical Engineering and Materials Science,<br>University of Minnesota<br>421 Washington Av. SE<br>Minneapolis, MN 55455<br>Tel. +1 612 624 9056&nbsp; &nbsp; Fax +1 612 626 7246<br>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% <br><br>_______________________________________________<br>Pw_forum mailing list<br><a ymailto="mailto:Pw_forum@pwscf.org" href="/mc/compose?to=Pw_forum@pwscf.org">Pw_forum@pwscf.org</a><br><a href="http://www.democritos.it/mailman/listinfo/pw_forum" target="_blank">http://www.democritos.it/mailman/listinfo/pw_forum</a><br></div></blockquote></td></tr></table><br>