<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Dear Peter,<br>I compared it with the last original brj.f. You really made substantial changes. Thank you very much for your nice effort on brj.f.<br><br>I recompiled the lapw0 replacing your new brj.f file. But, unfortunately, our case stopped at the first cycle with the following error in lapw0: <br><br>&nbsp;LAPW0 END<br>forrtl: severe (174): SIGSEGV, segmentation fault occurred<br>Image&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Routine&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Line&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Source&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>lapw0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 000000000040AA28&nbsp; brj_&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 46&nbsp; brj.f<br>lapw0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0000000000479D44&nbsp; vxclm2_&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 534&nbs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&nbsp;&nbsp; Unknown&nbsp; Unknown<br><br>We run the mbj for diamond, and found that the problem is not only for our case. It stops with the above error for any other simple cases.<br><br>I again copied the old brj.f and recompile the lapw0, and fond that it works properly for the diamond and the other simple cases, but for our
 case.<br><br>Any comments will be highly appreciated.<br>Thank you again,<br>With my best regards for you,<br>Saeid.<br><br><br><br><br><br>--- On <b>Fri, 10/15/10, Peter Blaha <i>&lt;pblaha@theochem.tuwien.ac.at&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Peter Blaha &lt;pblaha@theochem.tuwien.ac.at&gt;<br>Subject: Re: [Wien] mbj on Diamond<br>To: "A Mailing list for WIEN2k users" &lt;wien@zeus.theochem.tuwien.ac.at&gt;<br>Date: Friday, October 15, 2010, 4:38 AM<br><br><div class="plainMail">Hi,<br>After I got the struct file, I could verify the problem.<br><br>As expected, it is again in the SRC_lapw0/brj.f subroutine,<br>where one has to find the root of a function.<br><br>For strange densities this is numerically non-trivial.<br><br>The problem at the nucleus of heavy elements was solved before, but<br>here is the problem in the interstitial, when rho is very small
 and<br>also grad-rho, tau and laplace-rho are sufficiently small.<br><br>Then the required functions are "nearly" zero (lt. 10^-6) for a range<br>of x=10-30; but using x=30 produces a V-xc potential of -100 Ry,<br>which is the reason for your "Eigenvalues below zero".<br><br>When such problems occur again, please check also case.output0.<br>The Fourier coefficients of Vxc must "converge", i.e. (0 0 0) should be<br>order one, while (0 0 30) should be order 10^-5 .<br><br>The attached subroutine brj.f should fix these problems (at least your case converges<br>smoothly).<br><br>Dear All,<br><br><br><br>We are performing the mbj calculations for a carbon based compound. According to the usersguide there are three SCF cycles for mbj calculations: first a regular calculations within LDA/GGA (we use the PBE-GGA here),&nbsp; second one more cycle run_lapw –NI –i 1 , and third the mbj run after changing the potential energy functional indxc=28 in case.in0
 and index=50 in case.in0_grr.<br><br>Here we call the regular SCF cycles C1.scf, second one-more SCF cycle as C2.scf, and the third the mbj as cycle C3.scf.<br><br>The first regular cycle and the second run_lapw –NI –i 1 are converged smoothly. However, the third mbj cycle is stopped at lapw2 in its second iteration.<br><br>We analyzed the problem to find the source of the error. The result is given below, where the C2.scf line refers to the last :ITE of the second one more SCF cycle, and the C3.scf refers to the first :ITE of the third mbj run:<br><br><br><br>C2.scf::NTO033: TOTAL&nbsp;&nbsp;&nbsp;CHARGE IN SPHERE&nbsp; 1 =&nbsp; &nbsp; &nbsp; &nbsp; 3.9781366<br><br>C3.scf::NTO033: TOTAL&nbsp;&nbsp;&nbsp;CHARGE IN SPHERE&nbsp; 1 =&nbsp; &nbsp; &nbsp; &nbsp; 2.4250427<br><br><br><br>C2.scf::CTO033: TOTAL&nbsp;&nbsp;&nbsp;CHARGE IN SPHERE&nbsp; 1 =&nbsp; &nbsp; &nbsp; &nbsp; 3.9781254<br><br>C3.scf::CTO033: TOTAL&nbsp;&nbsp;&nbsp;CHARGE IN
 SPHERE&nbsp; 1 =&nbsp; &nbsp; &nbsp; &nbsp; 3.9470631<br><br><br><br>C2.scf::DIS&nbsp; :&nbsp; CHARGE DISTANCE&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;( 0.0000355 for atom&nbsp;&nbsp;&nbsp;33 spin 1)&nbsp; &nbsp; &nbsp; 0.0000136<br><br>C3.scf::DIS&nbsp; :&nbsp; CHARGE DISTANCE&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;( 1.8978668 for atom&nbsp;&nbsp;&nbsp;25 spin 1)&nbsp; &nbsp; &nbsp; 1.5016586<br><br><br><br>C2.scf::NEC01: NUCLEAR AND ELECTRONIC CHARGE&nbsp; &nbsp; 366.00000&nbsp;&nbsp;&nbsp;365.98257&nbsp; &nbsp;&nbsp;&nbsp;1.00005<br><br>C3.scf::NEC01: NUCLEAR AND ELECTRONIC CHARGE&nbsp; &nbsp; 366.00000&nbsp;&nbsp;&nbsp;365.98171&nbsp; &nbsp;&nbsp;&nbsp;1.00005<br><br><br><br>C2.scf::FER&nbsp; : F E R M I - ENERGY(TETRAH.M.)=&nbsp;&nbsp;&nbsp;0.21390<br><br>C3.scf::FER&nbsp; : F E R M I - ENERGY(TETRAH.M.)=&nbsp; -1.44751<br><br><br><br>The result clearly shows that there is a jump in :NTO, :DIS, and :FER (But in :CTO) after changing the functional to
 index=28.<br><br><br><br>-- <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; P.Blaha<br>--------------------------------------------------------------------------<br>Peter BLAHA, Inst.f. Materials Chemistry, TU Vienna, A-1060 Vienna<br>Phone: +43-1-58801-15671&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;FAX: +43-1-58801-15698<br>Email: <a ymailto="mailto:blaha@theochem.tuwien.ac.at" href="/mc/compose?to=blaha@theochem.tuwien.ac.at">blaha@theochem.tuwien.ac.at</a>&nbsp; &nbsp; WWW: <a href="http://info.tuwien.ac.at/theochem/" target="_blank">http://info.tuwien.ac.at/theochem/</a><br>--------------------------------------------------------------------------<br></div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>Wien mailing list<br><a ymailto="mailto:Wien@zeus.theochem.tuwien.ac.at"
 href="/mc/compose?to=Wien@zeus.theochem.tuwien.ac.at">Wien@zeus.theochem.tuwien.ac.at</a><br><a href="http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien" target="_blank">http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien</a><br></div></blockquote></td></tr></table><br>