Hi Duy Le,<br><br>Thanks for the idea. Tried it, and this is what I got:<br><br>Imposed Magnetization |  Total Energy (Hartree)<br>5.0<br>5.2<br>5.4<br>5.6     -55.527688685<br>5.8     -55.533921200<br>6.0     -55.540351250<br>



6.2     -55.540980910<br>6.4     -55.541296415<br>6.6  <br>6.8  <br>7.0  <br>7.2  <br><br>Values in blank are simulations that didn&#39;t execute, with the following error message:<br><br>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br>



     task #         0<br>     from  set_nelup_neldw  : error #         2<br>     tot_magnetization is inconsistent with total number of electrons <br> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br>



<br>So two interesting facts appeared here:<br><br>1 - The energy minimum does not converge to 6, as it should do;<br>2 - When an unconstrained magnetization is used, the magnetization converges to a value around 6.82. However, If I try to impose this value as a fixed magnetization from start, pw.x won&#39;t even begin the calculation. Weird, isn&#39;t it?<br>

<br>I&#39;m posting below a sample input file used for this battery of tests. I&#39;ve used a smaller cell size here to speed things up a little. If celldm(1) is increased say to 40 instead of 25, you&#39;ll get a change in magnetic moment of about 0.05 mB. This is probably irrelevant as far as finding the cause of these results is concerned.<br>
<br>Any other suggestions, just tell me; I&#39;ll try it and report back.<br><br><br>======================<br> &amp;CONTROL<br>                 calculation = &#39;scf&#39; ,<br>                restart_mode = &#39;from_scratch&#39; ,<br>
                  wf_collect = .true. ,<br>                      outdir = &#39;./output&#39; ,<br>                  pseudo_dir = &#39;../pseudo/&#39; ,<br>                      prefix = &#39;fe&#39; ,<br>               etot_conv_thr = 1.0D-9 ,<br>
               forc_conv_thr = 1.0D-6 ,<br>                     tstress = .true. ,<br>                     tprnfor = .true. ,<br> /<br> &amp;SYSTEM<br>                       ibrav = 1,<br>                   celldm(1) = 25,<br>
                         nat = 2,<br>                        ntyp = 1,<br>                     ecutwfc = 100 ,<br>                     ecutrho = 300 ,<br>                 occupations = &#39;smearing&#39; ,<br>                     degauss = 0.005 ,<br>
                    smearing = &#39;methfessel-paxton&#39; ,<br>                       nspin = 2 ,<br>   starting_magnetization(1) = 1.0,<br>           tot_magnetization = 6.0 ,<br> /<br> &amp;ELECTRONS<br>                    conv_thr = 1.0e-9 ,<br>
                 mixing_beta = 0.7 ,I<br>             diagonalization = &#39;david&#39; ,<br> /<br>ATOMIC_SPECIES<br>   Fe   58.69000  Fe.pbe-nd-rrkjus.UPF <br>ATOMIC_POSITIONS angstrom <br>   Fe      0.000000000    0.000000000    0.000000000    <br>
   Fe      2.048000000    0.000000000    0.000000000    <br>K_POINTS automatic <br>  1 1 1   1 1 1 <br>======================<br><br><br>Giovani <br><br><br><br><br><br><br><br><div class="gmail_quote">2011/2/13 Duy Le <span dir="ltr">&lt;<a href="mailto:ttduyle@gmail.com" target="_blank">ttduyle@gmail.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">You should be able to fix magneticmoment of system at the desired<br>
value (say 6, 6.5, 7) to see which one give you the lowest energy.<br>
--------------------------------------------------<br>
Duy Le<br>
PhD Student<br>
Department of Physics<br>
University of Central Florida.<br>
<br>
&quot;Men don&#39;t need hand to do things&quot;<br>
<div><div></div><div><br>
<br>
<br>
On Sun, Feb 13, 2011 at 1:16 AM, Giovani Faccin<br>
&lt;<a href="mailto:faccin.giovani@gmail.com" target="_blank">faccin.giovani@gmail.com</a>&gt; wrote:<br>
&gt; Dear Paolo,<br>
&gt;<br>
&gt; Thanks for the reply.<br>
&gt;<br>
&gt; Just to make sure that the simulation cell size is not an issue (so that the<br>
&gt; system is really finite), I&#39;ve tested different possibilities, including<br>
&gt; some quite big cells. Still, after a certain size the value of the<br>
&gt; magnetization is converging to 6.82 instead of the expected 6.<br>
&gt;<br>
&gt; So something else is causing this. Unfortunately I&#39;ve got no clue as to what<br>
&gt; could it be.<br>
&gt;<br>
&gt; Should it be of any help, this is my input file:<br>
&gt;<br>
&gt;<br>
&gt;  &amp;CONTROL<br>
&gt;                  calculation = &#39;scf&#39; ,<br>
&gt;                 restart_mode = &#39;from_scratch&#39; ,<br>
&gt;                   wf_collect = .true. ,<br>
&gt;                       outdir = &#39;./output&#39; ,<br>
&gt;                   pseudo_dir = &#39;../pseudo/&#39; ,<br>
&gt;                       prefix = &#39;fe&#39; ,<br>
&gt;                etot_conv_thr = 1.0D-9 ,<br>
&gt;                forc_conv_thr = 1.0D-6 ,<br>
&gt;                      tstress = .true. ,<br>
&gt;                      tprnfor = .true. ,<br>
&gt;  /<br>
&gt;  &amp;SYSTEM<br>
&gt;                        ibrav = 1,<br>
&gt;                    celldm(1) = 43,<br>
&gt;                          nat = 2,<br>
&gt;                         ntyp = 1,<br>
&gt;                      ecutwfc = 100 ,<br>
&gt;                      ecutrho = 300 ,<br>
&gt;                  occupations = &#39;smearing&#39; ,<br>
&gt;                      degauss = 0.02 ,<br>
&gt;                     smearing = &#39;methfessel-paxton&#39; ,<br>
&gt;                        nspin = 2 ,<br>
&gt;    starting_magnetization(1) = 1.0,<br>
&gt;  /<br>
&gt;  &amp;ELECTRONS<br>
&gt;                     conv_thr = 1.0e-9 ,<br>
&gt;                  mixing_beta = 0.7 ,<br>
&gt;              diagonalization = &#39;david&#39; ,<br>
&gt;  /<br>
&gt; ATOMIC_SPECIES<br>
&gt;    Fe   58.69000  Fe.pbe-nd-rrkjus.UPF<br>
&gt; ATOMIC_POSITIONS angstrom<br>
&gt;    Fe      0.000000000    0.000000000    0.000000000<br>
&gt;    Fe      2.047510       0.000000000    0.000000000<br>
&gt; K_POINTS automatic<br>
&gt;   1 1 1   1 1 1<br>
&gt;<br>
&gt; Any suggestions are highly welcome.<br>
&gt;<br>
&gt; Giovani<br>
&gt;<br>
&gt;<br>
&gt; 2011/2/12 Paolo Giannozzi &lt;<a href="mailto:giannozz@democritos.it" target="_blank">giannozz@democritos.it</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Feb 11, 2011, at 17:09 , Giovani Faccin wrote:<br>
&gt;&gt;<br>
&gt;&gt; &gt; My question: shouldn&#39;t those numbers be integers?<br>
&gt;&gt;<br>
&gt;&gt; only in finite systems, if you neglect spin-orbit.<br>
&gt;&gt;<br>
&gt;&gt; P.<br>
&gt;&gt; ---<br>
&gt;&gt; Paolo Giannozzi, Dept of Chemistry&amp;Physics&amp;Environment,<br>
&gt;&gt; Univ. Udine, via delle Scienze 208, 33100 Udine, Italy<br>
&gt;&gt; Phone +39-0432-558216, fax +39-0432-558222<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Pw_forum mailing list<br>
&gt;&gt; <a href="mailto:Pw_forum@pwscf.org" target="_blank">Pw_forum@pwscf.org</a><br>
&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;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Giovani<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Pw_forum mailing list<br>
&gt; <a href="mailto:Pw_forum@pwscf.org" target="_blank">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;<br>
&gt;<br>
_______________________________________________<br>
Pw_forum mailing list<br>
<a href="mailto:Pw_forum@pwscf.org" target="_blank">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></div></blockquote></div><br><br clear="all"><br>-- <br>Giovani<br>