<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt">Dear Prof.Eyvaz Isaev,<br>Thanks for your reply.<br>I have looked into the user guide and got the impression that the warning I am getting willnot seriously affect further calcualtions.<br>regards<br>Assa Aravindh.S<br>Research Scholar<br>Theory and Computational Studies Section<br>Material Science Division<br>Indira gandhi Centre for Atomic Research <br>Kalpakkam - 603102, India<br><div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> "pw_forum-request@pwscf.org" &lt;pw_forum-request@pwscf.org&gt;<br><b><span style="font-weight: bold;">To:</span></b> pw_forum@pwscf.org<br><b><span
 style="font-weight: bold;">Sent:</span></b> Sunday, 16 November, 2008 1:19:20 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Pw_forum Digest, Vol 17, Issue 32<br></font><br>Send Pw_forum mailing list submissions to<br>&nbsp;&nbsp;&nbsp; <a ymailto="mailto:pw_forum@pwscf.org" href="mailto:pw_forum@pwscf.org">pw_forum@pwscf.org</a><br><br>To subscribe or unsubscribe via the World Wide Web, visit<br>&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>or, via email, send a message with subject or body 'help' to<br>&nbsp;&nbsp;&nbsp; <a ymailto="mailto:pw_forum-request@pwscf.org" href="mailto:pw_forum-request@pwscf.org">pw_forum-request@pwscf.org</a><br><br>You can reach the person managing the list at<br>&nbsp;&nbsp;&nbsp; <a ymailto="mailto:pw_forum-owner@pwscf.org"
 href="mailto:pw_forum-owner@pwscf.org">pw_forum-owner@pwscf.org</a><br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of Pw_forum digest..."<br><br><br>Today's Topics:<br><br>&nbsp;  1. Re: (no subject) (Eyvaz Isaev)<br>&nbsp;  2. Re: convergence problem (Eyvaz Isaev)<br>&nbsp;  3. sawtooth method (hanghui chen)<br>&nbsp;  4. a possible problem in the routine add_efield.f90 (hanghui chen)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Sat, 15 Nov 2008 04:46:41 -0800 (PST)<br>From: Eyvaz Isaev &lt;<a ymailto="mailto:eyvaz_isaev@yahoo.com" href="mailto:eyvaz_isaev@yahoo.com">eyvaz_isaev@yahoo.com</a>&gt;<br>Subject: Re: [Pw_forum] (no subject)<br>To: <a ymailto="mailto:pw_forum@pwscf.org" href="mailto:pw_forum@pwscf.org">pw_forum@pwscf.org</a><br>Message-ID: &lt;<a ymailto="mailto:901139.66497.qm@web65712.mail.ac4.yahoo.com"
 href="mailto:901139.66497.qm@web65712.mail.ac4.yahoo.com">901139.66497.qm@web65712.mail.ac4.yahoo.com</a>&gt;<br>Content-Type: text/plain; charset=us-ascii<br><br>Dear Fereydoon,<br><br>Already you have it. Please see /examples/example03 with Al(001) slab. Besides, you need to read some papers how to deal with such kind calculations. For example, Payne et al. in Review of Modern Physics, vol. 64, p.1045 (1992).<br>There are also textbooks "Surface Physics" of Zengwil, and "Principles of Surface Physics" by Bechstedt.<br> <br>Please also do not forget specify your affiliation as it is default in this forum.<br><br>Bests,<br>Eyvaz. <br><br>-------------------------------------------------------------------<br>Prof. Eyvaz Isaev, <br>Theoretical Physics Department, Moscow State Institute of Steel &amp; Alloys, Russia, <br>Department of Physics, Chemistry, and Biology (IFM), Linkoping University, Sweden <br>Condensed Matter Theory Group, Uppsala University,
 Sweden <br><a ymailto="mailto:Eyvaz.Isaev@fysik.uu.se" href="mailto:Eyvaz.Isaev@fysik.uu.se">Eyvaz.Isaev@fysik.uu.se</a>, <a ymailto="mailto:isaev@ifm.liu.se" href="mailto:isaev@ifm.liu.se">isaev@ifm.liu.se</a>, <a ymailto="mailto:eyvaz_isaev@yahoo.com" href="mailto:eyvaz_isaev@yahoo.com">eyvaz_isaev@yahoo.com</a><br><br><br>--- On Sat, 11/15/08, fereydoon khazali &lt;<a ymailto="mailto:frnkhzi@yahoo.com" href="mailto:frnkhzi@yahoo.com">frnkhzi@yahoo.com</a>&gt; wrote:<br><br>&gt; From: fereydoon khazali &lt;<a ymailto="mailto:frnkhzi@yahoo.com" href="mailto:frnkhzi@yahoo.com">frnkhzi@yahoo.com</a>&gt;<br>&gt; Subject: [Pw_forum] (no subject)<br>&gt; To: <a ymailto="mailto:Pw_forum@pwscf.org" href="mailto:Pw_forum@pwscf.org">Pw_forum@pwscf.org</a><br>&gt; Date: Saturday, November 15, 2008, 8:56 AM<br>&gt; All dear <br>&gt; Please send me an input file for slab.<br>&gt; thanks<br>&gt; <br>&gt; <br>&gt;&nbsp; &nbsp; &nbsp; 
 _______________________________________________<br>&gt; Pw_forum mailing list<br>&gt; <a ymailto="mailto:Pw_forum@pwscf.org" href="mailto: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><br><br>&nbsp; &nbsp; &nbsp; <br><br><br>------------------------------<br><br>Message: 2<br>Date: Sat, 15 Nov 2008 05:04:14 -0800 (PST)<br>From: Eyvaz Isaev &lt;<a ymailto="mailto:eyvaz_isaev@yahoo.com" href="mailto:eyvaz_isaev@yahoo.com">eyvaz_isaev@yahoo.com</a>&gt;<br>Subject: Re: [Pw_forum] convergence problem<br>To: PWSCF Forum &lt;<a ymailto="mailto:pw_forum@pwscf.org" href="mailto:pw_forum@pwscf.org">pw_forum@pwscf.org</a>&gt;<br>Message-ID: &lt;<a ymailto="mailto:262570.76464.qm@web65712.mail.ac4.yahoo.com"
 href="mailto:262570.76464.qm@web65712.mail.ac4.yahoo.com">262570.76464.qm@web65712.mail.ac4.yahoo.com</a>&gt;<br>Content-Type: text/plain; charset=us-ascii<br><br>Dear Asa,<br><br>I think you can trust these results. Please have a look at Troubleshooting in User's Guide: "warning : N eigenvectors not converged ..."<br><br>We appreciate if you will specify your affiliation.<br><br>Bests,<br>Eyvaz.<br><br>-------------------------------------------------------------------<br>Prof. Eyvaz Isaev, <br>Theoretical Physics Department, Moscow State Institute of Steel &amp; Alloys, Russia, <br>Department of Physics, Chemistry, and Biology (IFM), Linkoping University, Sweden <br>Condensed Matter Theory Group, Uppsala University, Sweden <br><a ymailto="mailto:Eyvaz.Isaev@fysik.uu.se" href="mailto:Eyvaz.Isaev@fysik.uu.se">Eyvaz.Isaev@fysik.uu.se</a>, <a ymailto="mailto:isaev@ifm.liu.se" href="mailto:isaev@ifm.liu.se">isaev@ifm.liu.se</a>, <a
 ymailto="mailto:eyvaz_isaev@yahoo.com" href="mailto:eyvaz_isaev@yahoo.com">eyvaz_isaev@yahoo.com</a><br><br><br>--- On Sat, 11/15/08, asa aravindh &lt;<a ymailto="mailto:asaaravindh@yahoo.co.in" href="mailto:asaaravindh@yahoo.co.in">asaaravindh@yahoo.co.in</a>&gt; wrote:<br><br>&gt; From: asa aravindh &lt;<a ymailto="mailto:asaaravindh@yahoo.co.in" href="mailto:asaaravindh@yahoo.co.in">asaaravindh@yahoo.co.in</a>&gt;<br>&gt; Subject: [Pw_forum] convergence problem<br>&gt; To: <a ymailto="mailto:pw_forum@pwscf.org" href="mailto:pw_forum@pwscf.org">pw_forum@pwscf.org</a><br>&gt; Date: Saturday, November 15, 2008, 9:26 AM<br>&gt; Dear all..<br>&gt; I was trying to do scf and nscf calculations on ZnO<br>&gt; nanowires using pwscf<br>&gt; scf has run successfully, while nscf shows this warning in<br>&gt; between..<br>&gt;&nbsp; Band Structure Calculation<br>&gt;&nbsp; &nbsp; &nbsp; CG style diagonalization<br>&gt;&nbsp; &nbsp; &nbsp; c_bands:&nbsp; 2
 eigenvalues not converged<br>&gt; .....................................<br>&gt; but the code works even after this and finishes the nscf<br>&gt; run. After looking into the forum I got the impression that<br>&gt; this might be due to the algorithm "david", which<br>&gt; I was using .So I changed to "CG" . Again the same<br>&gt; situation is repeating. <br>&gt; My question is whether my results will be accurate if this<br>&gt; warnig persists??<br>&gt; If I do further calculations like transport taking this scf<br>&gt; and nscf outputs how far my calculations will be reliable??<br>&gt; can anybody please help me in this regard...........<br>&gt; Thanks in advance<br>&gt; asa<br>&gt; <br>&gt; <br>&gt;&nbsp; &nbsp; &nbsp;  Be the first one to try the new Messenger 9 Beta! Go<br>&gt; to<br>&gt; <a href="http://in.messenger.yahoo.com/win/_______________________________________________"
 target="_blank">http://in.messenger.yahoo.com/win/_______________________________________________</a><br>&gt; Pw_forum mailing list<br>&gt; <a ymailto="mailto:Pw_forum@pwscf.org" href="mailto: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><br><br>&nbsp; &nbsp; &nbsp; <br><br><br>------------------------------<br><br>Message: 3<br>Date: Sat, 15 Nov 2008 13:27:53 -0500<br>From: "hanghui chen" &lt;<a ymailto="mailto:chenhanghuipwscf@gmail.com" href="mailto:chenhanghuipwscf@gmail.com">chenhanghuipwscf@gmail.com</a>&gt;<br>Subject: [Pw_forum] sawtooth method<br>To: <a ymailto="mailto:pw_forum@pwscf.org" href="mailto:pw_forum@pwscf.org">pw_forum@pwscf.org</a><br>Message-ID:<br>&nbsp;&nbsp;&nbsp; &lt;<a ymailto="mailto:22ae3ca40811151027s7cfd5c64m3336acc7706cbc0d@mail.gmail.com"
 href="mailto:22ae3ca40811151027s7cfd5c64m3336acc7706cbc0d@mail.gmail.com">22ae3ca40811151027s7cfd5c64m3336acc7706cbc0d@mail.gmail.com</a>&gt;<br>Content-Type: text/plain; charset="iso-8859-1"<br><br>Dear PWSCF users,<br>&nbsp; &nbsp; &nbsp; I calculate a symmetric STO slab (separated by vacuum) and turn on a<br>symmetric sawtooth potential (the turning point is right at the center of<br>the STO slab). I fix all the atoms. Without the sawtooth potential, the<br>forces are symmetric and there are no forces in the central layer. However,<br>when I turn on the sawtooth potential which I set to be symmetric, the<br>forces on the atoms are NO longer symmetric and the forces in the layer are<br>NO longer zero. The input file and the forces (turning on sawtooth<br>potential) are given below.<br>&nbsp; &nbsp;  Why are the forces NOT symmetric but the configuration (including the<br>sawtooth potential) is symmetric? Does the turning point in the material<br>cause
 any anomaly?<br>&nbsp; &nbsp;  Thank you very much.<br><br>Hanghui Chen<br>Department of Physics, Yale University<br><br>Input file:<br>&amp;CONTROL<br>&nbsp; calculation='scf'<br>&nbsp; wf_collect=.true.<br>&nbsp; pseudo_dir = './psp'<br>&nbsp; outdir='.'<br>&nbsp; wfcdir='/scratch'<br>&nbsp; prefix='test1'<br>&nbsp; disk_io='low'<br>&nbsp; verbosity='high'<br>&nbsp; tprnfor = .true.<br>&nbsp; tstress = .true.<br>&nbsp; dt=80.D0<br>&nbsp; tefield=.true.<br>/<br>&amp;SYSTEM<br>&nbsp; ibrav=&nbsp; 6<br>&nbsp; celldm(1) = 7.27<br>&nbsp; celldm(3) = 6.0<br>&nbsp; nat=&nbsp; 12<br>&nbsp; ntyp= 3<br>&nbsp; ecutwfc = 30.0<br>&nbsp; ecutrho = 180.0<br>&nbsp; occupations='smearing'<br>&nbsp; smearing='gauss'<br>&nbsp; degauss=0.005<br>&nbsp; edir=3<br>&nbsp; emaxpos=0.5<br>&nbsp; eopreg=0.5<br>&nbsp; eamp=0.01<br>/<br>&amp;ELECTRONS<br>&nbsp; diagonalization='david'<br>&nbsp; mixing_beta = 0.7D0<br>&nbsp; diago_david_ndim = 4<br>&nbsp; mixing_mode=
 'local-TF'<br>&nbsp; electron_maxstep = 300<br>&nbsp; startingpot = 'file'<br>&nbsp; conv_thr= 1.d-8<br>/<br>&amp;IONS<br>&nbsp; ion_dynamics = 'bfgs'<br>&nbsp; phase_space = 'full'<br>&nbsp; pot_extrapolation = 'first_order'<br>&nbsp; wfc_extrapolation = 'first_order'<br>/<br>&amp;CELL<br>&nbsp; cell_dynamics = 'damp-w'<br>/<br>ATOMIC_SPECIES<br> Sr&nbsp; 87.62&nbsp; 038-Sr-ca-sp-vgrp.uspp.format.UPF<br> Ti&nbsp; 47.90&nbsp; 022-Ti-ca-sp-vgrp.uspp.format.UPF<br> O&nbsp;  16.00&nbsp; 008-O-ca--vgrp.uspp.format.UPF<br>ATOMIC_POSITIONS alat<br> Sr 0.00 0.00 2.00<br> O&nbsp; 0.50 0.50 2.00<br> Ti 0.50 0.50 2.50<br> O&nbsp; 0.50 0.00 2.50<br> O&nbsp; 0.00 0.50 2.50<br> Sr 0.00 0.00 3.00<br> O&nbsp; 0.50 0.50 3.00<br> Ti 0.50 0.50 3.50<br> O&nbsp; 0.50 0.00 3.50<br> O&nbsp; 0.00 0.50 3.50<br> Sr 0.00 0.00 4.00<br> O&nbsp; 0.50 0.50 4.00<br>K_POINTS {automatic}<br>8 8 1 0 0 0<br>Forces:<br> atom&nbsp;  1 type&nbsp; 1&nbsp;  force =&nbsp; &nbsp; 
 0.00000001&nbsp;  -0.00000001&nbsp;  -0.09670746<br> atom&nbsp;  2 type&nbsp; 3&nbsp;  force =&nbsp; &nbsp;  0.00000000&nbsp; &nbsp; 0.00000000&nbsp;  -0.21698818<br> atom&nbsp;  3 type&nbsp; 2&nbsp;  force =&nbsp; &nbsp;  0.00000000&nbsp; &nbsp; 0.00000001&nbsp;  -0.17490285<br> atom&nbsp;  4 type&nbsp; 3&nbsp;  force =&nbsp; &nbsp;  0.00000000&nbsp; &nbsp; 0.00000000&nbsp;  -0.17341486<br> atom&nbsp;  5 type&nbsp; 3&nbsp;  force =&nbsp; &nbsp;  0.00000001&nbsp; &nbsp; 0.00000000&nbsp;  -0.17341491<br> atom&nbsp;  6 type&nbsp; 1&nbsp;  force =&nbsp; &nbsp; -0.00000002&nbsp; &nbsp; 0.00000000&nbsp; &nbsp; 0.06540405<br> atom&nbsp;  7 type&nbsp; 3&nbsp;  force =&nbsp; &nbsp; -0.00000001&nbsp;  -0.00000001&nbsp;  -0.01253063<br> atom&nbsp;  8 type&nbsp; 2&nbsp;  force =&nbsp; &nbsp;  0.00000001&nbsp; &nbsp; 0.00000001&nbsp; &nbsp; 0.32344891<br> atom&nbsp;  9 type&nbsp; 3&nbsp;  force =&nbsp; &nbsp;  0.00000000&nbsp; &nbsp; 0.00000000&nbsp; &nbsp;
 0.08311003<br> atom&nbsp; 10 type&nbsp; 3&nbsp;  force =&nbsp; &nbsp;  0.00000000&nbsp; &nbsp; 0.00000000&nbsp; &nbsp; 0.08311005<br> atom&nbsp; 11 type&nbsp; 1&nbsp;  force =&nbsp; &nbsp;  0.00000000&nbsp; &nbsp; 0.00000000&nbsp; &nbsp; 0.16600421<br> atom&nbsp; 12 type&nbsp; 3&nbsp;  force =&nbsp; &nbsp;  0.00000001&nbsp; &nbsp; 0.00000000&nbsp; &nbsp; 0.12688164<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a href="http://www.democritos.it/pipermail/pw_forum/attachments/20081115/7d724bf2/attachment.html" target="_blank">http://www.democritos.it/pipermail/pw_forum/attachments/20081115/7d724bf2/attachment.html</a> <br><br>------------------------------<br><br>Message: 4<br>Date: Sun, 16 Nov 2008 01:27:57 -0500<br>From: "hanghui chen" &lt;<a ymailto="mailto:chenhanghuipwscf@gmail.com" href="mailto:chenhanghuipwscf@gmail.com">chenhanghuipwscf@gmail.com</a>&gt;<br>Subject: [Pw_forum] a possible problem in the
 routine add_efield.f90<br>To: <a ymailto="mailto:pw_forum@pwscf.org" href="mailto:pw_forum@pwscf.org">pw_forum@pwscf.org</a><br>Message-ID:<br>&nbsp;&nbsp;&nbsp; &lt;<a ymailto="mailto:22ae3ca40811152227m52d98444le4d554ea16b12600@mail.gmail.com" href="mailto:22ae3ca40811152227m52d98444le4d554ea16b12600@mail.gmail.com">22ae3ca40811152227m52d98444le4d554ea16b12600@mail.gmail.com</a>&gt;<br>Content-Type: text/plain; charset="iso-8859-1"<br><br>Dear PWSCF users,<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; In my previous email, I reported that if I calculated a<br>symmetric<br>&nbsp;  system (both the material and the external sawtooth potential are<br>&nbsp;  symmetric), I found that the forces are not symmetric. I think I may find<br>&nbsp;  the reason.<br>&nbsp; &nbsp; &nbsp; &nbsp; The total force in the presence of sawtooth potential has two parts:<br>&nbsp;  one is from the variation of Kohn-Sham functional; the other is from<br>&nbsp; 
 sawtooth potential which in the code is "forcefield" (see the routine<br>&nbsp;  forces.f90). The additional force is calculated by the routine<br>&nbsp;  add_efield.f90. However in routine add_efield.f90, it only calculates the<br>&nbsp;  magnitude of the force but does not specify the direction (the additional<br>&nbsp;  force only has one direction).&nbsp; Therefore all the forces in the 'reversed<br>&nbsp;  region' are not correctly calculated because the direction of<br>'forcefield'<br>&nbsp;  is NOT reversed as is the external electric field.<br>&nbsp; &nbsp; &nbsp; &nbsp; I sincerely hope that the people who wrote the routine<br>add_efield.f90<br>&nbsp;  can reexamine the code and add the directions to the "forcefield".<br>&nbsp; &nbsp; &nbsp; &nbsp; No offense intended.<br>&nbsp; &nbsp; &nbsp; &nbsp; Thank you very much.<br>&nbsp;  Hanghui Chen<br>&nbsp;  Department of Physics, Yale University<br>-------------- next part --------------<br>An
 HTML attachment was scrubbed...<br>URL: <a href="http://www.democritos.it/pipermail/pw_forum/attachments/20081116/d92b668e/attachment-0001.htm" target="_blank">http://www.democritos.it/pipermail/pw_forum/attachments/20081116/d92b668e/attachment-0001.htm</a> <br><br>------------------------------<br><br>_______________________________________________<br>Pw_forum mailing list<br><a ymailto="mailto:Pw_forum@pwscf.org" href="mailto: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><br><br>End of Pw_forum Digest, Vol 17, Issue 32<br>****************************************<br></div></div></div><br>
      <!--6--><hr size=1></hr> Add more friends to your messenger and enjoy! <a href="http://in.rd.yahoo.com/tagline_messenger_6/*http://messenger.yahoo.com/invite/"> Invite them now.</a></body></html>