<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>&nbsp;</DIV>
<DIV>Dear Emine</DIV>
<DIV>&nbsp;</DIV>
<DIV>before all, thanks for your consideration.</DIV>
<DIV>after that, </DIV>
<DIV>&nbsp;</DIV>
<DIV>&gt;Ok so let me understand</DIV>
<DIV>that's right. you undrestand the problem precisely.&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&gt;Please send more info on the configuration of your machine<BR>architecture : x86_64</DIV>
<DIV>Linix Version : CentOS 5.5</DIV>
<DIV>Fortran Compiler : ifort version 12.1.0</DIV>
<DIV>Code&nbsp;Version : espresso-5.0/</DIV>
<DIV>&nbsp;</DIV>
<DIV>&gt;you can attach them as well.<BR>tabd.f90 &amp; set_hubbard_l.f90 are attached</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks&nbsp;</DIV>
<DIV>MS&nbsp;</DIV>
<DIV><BR>--- On <B>Sun, 7/1/12, Emine Kucukbenli <I>&lt;kucukben@sissa.it&gt;</I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px"><BR>From: Emine Kucukbenli &lt;kucukben@sissa.it&gt;<BR>Subject: Re: [Pw_forum] Problem in using GGA+U for the PbSe Calculation<BR>To: meghdad_saeedian@yahoo.com<BR>Date: Sunday, July 1, 2012, 4:58 AM<BR><BR>
<DIV class=plainMail><BR>Ok so let me understand,<BR>Now we are talking about another machine, where the code compiles<BR>successfully after the modifications to those two files, but gives the<BR>"pseudo potential not yet inserted" error in runtime (in PbSe case),<BR>even though you have supplied them in the lists we have mentioned<BR>before.<BR>I am sorry I find it a bit hard to understand why this would happen.<BR>Please send more info on the configuration of your machine, version of<BR>the code, compilers you use, so i can see if i can reproduce it. i am<BR>also curious about the files you have modified. you can attach them as<BR>well.<BR>ciao<BR>emine<BR><BR><BR>Quoting meghdad saeedian &lt;<A href="http://us.mc1406.mail.yahoo.com/mc/compose?to=meghdad_saeedian@yahoo.com" ymailto="mailto:meghdad_saeedian@yahoo.com">meghdad_saeedian@yahoo.com</A>&gt;:<BR><BR>&gt; Dear Emine<BR>&gt;<BR>&gt; Iv changed ~/espresso-5.0/PW/src/tabd.f90 &amp;<BR>&gt;
 ~/espresso-5.0/flib/set_hubbard_l.f90 in the another machine&nbsp; and pw<BR>&gt; compiled correctly as below :<BR>&gt;<BR>&gt; .<BR>&gt; .<BR>&gt; .<BR>&gt; make[2]: Entering directory `/home/user25/espresso-5.0/PW/src'<BR>&gt; test -n "" &amp;&amp; ( cd ../.. ; make -w&nbsp; || exit 1) || :<BR>&gt; make[2]: Leaving directory `/home/user25/espresso-5.0/PW/src'<BR>&gt; if test -d tools ; then \<BR>&gt; &nbsp;&nbsp;&nbsp; ( cd tools ; if test "make" = "" ; then make -w pwtools; \<BR>&gt; &nbsp;&nbsp;&nbsp; else make -w ; fi ) ; fi ; \<BR>&gt;<BR>&gt; make[2]: Entering directory `/home/user25/espresso-5.0/PW/tools'<BR>&gt; test -n "" &amp;&amp; ( cd ../.. ; make -w&nbsp; || exit 1) || :<BR>&gt; make[2]: Leaving directory `/home/user25/espresso-5.0/PW/tools'<BR>&gt; make[1]: Leaving directory<BR>&gt;&nbsp; `/home/user25/espresso-5.0/PW'<BR>&gt; [user25@ce espresso-5.0]$<BR>&gt;<BR>&gt; in this machine, GGA+U for ZnO works well.<BR>&gt; But there is still
 the previous error for PbSe :(<BR>&gt;<BR>&gt; How can I trace the problem?<BR>&gt;<BR>&gt; Thanks<BR>&gt; MS<BR>&gt;<BR>&gt; --- On Sat, 6/30/12, Emine Kucukbenli &lt;<A href="http://us.mc1406.mail.yahoo.com/mc/compose?to=kucukben@sissa.it" ymailto="mailto:kucukben@sissa.it">kucukben@sissa.it</A>&gt; wrote:<BR>&gt;<BR>&gt; From: Emine Kucukbenli &lt;<A href="http://us.mc1406.mail.yahoo.com/mc/compose?to=kucukben@sissa.it" ymailto="mailto:kucukben@sissa.it">kucukben@sissa.it</A>&gt;<BR>&gt; Subject: Re: [Pw_forum] Fw: Re: Problem in using GGA+U for the PbSe<BR>&gt; Calculation<BR>&gt; To: <A href="http://us.mc1406.mail.yahoo.com/mc/compose?to=meghdad_saeedian@yahoo.com" ymailto="mailto:meghdad_saeedian@yahoo.com">meghdad_saeedian@yahoo.com</A><BR>&gt; Date: Saturday, June 30, 2012, 8:57 PM<BR>&gt;<BR>&gt; Dear Meghdad,<BR>&gt;&gt; I didnt know that I should make it again.<BR>&gt; Good, now you know :)<BR>&gt;<BR>&gt;&gt; what can I do
 now?<BR>&gt;<BR>&gt; A starting place would be, to think what the error message is trying<BR>&gt; to tell you "invalid character"<BR>&gt;&nbsp; ?<BR>&gt; then [I am guessing but not 100% that is the problem], googling "non<BR>&gt; printable/control characters" for the editor you have used to edit the<BR>&gt; tabd.f90 code: MS Word, etc...<BR>&gt; ciao<BR>&gt; emine<BR>&gt;<BR>&gt;<BR>&gt; Quoting meghdad saeedian &lt;<A href="http://us.mc1406.mail.yahoo.com/mc/compose?to=meghdad_saeedian@yahoo.com" ymailto="mailto:meghdad_saeedian@yahoo.com">meghdad_saeedian@yahoo.com</A>&gt;:<BR>&gt;<BR>&gt;&gt; Dear Emine<BR>&gt;&gt;<BR>&gt;&gt; I didnt know that I should make it again.<BR>&gt;&gt; Anyway, Iv done the below command:<BR>&gt;&gt; $ make pw<BR>&gt;&gt; then it give the following error:<BR>&gt;&gt;<BR>&gt;&gt; make[1]: Entering directory `/home/meghdad/espresso-4.3.2/PW'<BR>&gt;&gt; test -n "" &amp;&amp; ( cd .. ; make -w&nbsp; || exit 1) || :<BR>&gt;&gt;
 gfortran -O3 -g -x f95-cpp-input -D__GFORTRAN -D__STD_F95 -D__FFTW<BR>&gt;&gt; -I../include -I../iotk/src -I../Modules -I. -c set_hubbard_l.f90<BR>&gt;&gt; gfortran -O3 -g -x f95-cpp-input -D__GFORTRAN -D__STD_F95 -D__FFTW<BR>&gt;&gt; -I../include -I../iotk/src<BR>&gt;&nbsp; -I../Modules -I. -c tabd.f90<BR>&gt;&gt; tabd.f90:1.1:<BR>&gt;&gt;<BR>&gt;&gt; \!<BR>&gt;&gt; &nbsp;1<BR>&gt;&gt; Error: Invalid character in name at (1)<BR>&gt;&gt; make[1]: *** [tabd.o] Error 1<BR>&gt;&gt; make[1]: Leaving directory `/home/meghdad/espresso-4.3.2/PW'<BR>&gt;&gt; make: *** [pw] Error 2<BR>&gt;&gt; meghdad@meghdad-Vostro-1320:<BR>&gt;&gt;<BR>&gt;&gt; what can I do now?<BR>&gt;&gt;<BR>&gt;&gt; MS<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; --- On Sat, 6/30/12, Emine Kucukbenli &lt;<A href="http://us.mc1406.mail.yahoo.com/mc/compose?to=kucukben@sissa.it" ymailto="mailto:kucukben@sissa.it">kucukben@sissa.it</A>&gt; wrote:<BR>&gt;&gt;<BR>&gt;&gt; From:
 Emine Kucukbenli &lt;<A href="http://us.mc1406.mail.yahoo.com/mc/compose?to=kucukben@sissa.it" ymailto="mailto:kucukben@sissa.it">kucukben@sissa.it</A>&gt;<BR>&gt;&gt; Subject: Re: [Pw_forum] Problem in using GGA+U for the PbSe Calculation<BR>&gt;&gt; To: <A href="http://us.mc1406.mail.yahoo.com/mc/compose?to=meghdad_saeedian@yahoo.com" ymailto="mailto:meghdad_saeedian@yahoo.com">meghdad_saeedian@yahoo.com</A><BR>&gt;&gt; Date: Saturday, June 30, 2012, 7:11<BR>&gt;&nbsp; PM<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; Hi Meghdad,<BR>&gt;&gt; seems you have done the necessary modifications to the code,<BR>&gt;&gt; silly question but have you complied to code again (make pw?)<BR>&gt;&gt; ciao<BR>&gt;&gt; emine<BR>&gt;&gt;<BR>&gt;&gt; Quoting meghdad saeedian &lt;<A href="http://us.mc1406.mail.yahoo.com/mc/compose?to=meghdad_saeedian@yahoo.com" ymailto="mailto:meghdad_saeedian@yahoo.com">meghdad_saeedian@yahoo.com</A>&gt;:<BR>&gt;&gt;<BR>&gt;&gt;&gt;
 Dear all<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; I want to use GGA+U to calculation of the energy gap of PbSe.<BR>&gt;&gt;&gt; So I put the value of the angular momentum in the<BR>&gt;&gt;&gt; PW/set_hubbard_l.f90&nbsp; as below:<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp;&nbsp; ! ... other elements<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp;&nbsp; !<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp;&nbsp; CASE( 'H' )<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; !<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hubbard_l =&nbsp; 0<BR>&gt;&gt;&gt;<BR>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&gt;&gt;&gt; &nbsp; !<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp;&nbsp; CASE( 'Pb' )<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; !<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hubbard_l =&nbsp; 2<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; !<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp;&nbsp; CASE( 'Se' )<BR>&gt;&gt;&gt;
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; !<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hubbard_l =&nbsp;<BR>&gt;&gt;&gt; &nbsp; 1<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; !<BR>&gt;&gt;&gt; And the occupation number in the PW/tabd.f90 modified as below :<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp; !<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp;&nbsp; CASE( 'Pb'&nbsp; )<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hubbard_occ = 10.d0<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp;&nbsp; !<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp;&nbsp; CASE( 'O', 'Se'&nbsp; )<BR>&gt;&gt;&gt;<BR>&gt;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hubbard_occ = 4.d0<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp;&nbsp; !<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp;&nbsp; CASE( 'H'&nbsp; )<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hubbard_occ = 1.d0<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp;&nbsp; !<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; Then the input
 file of PbSe is constructed as below:<BR>&gt;&gt;&gt; &nbsp;<BR>&gt;&gt;&gt; &amp;control<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp; calculation='vc-relax'<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp; prefix='PbSe',<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp; pseudo_dir ='/home/meghdad/espresso-4.3.2/pseudo/',<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp; outdir='/home/meghdad/tmp/',<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp; tstress = .true.<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp; tprnfor =<BR>&gt;&gt;&gt; &nbsp; .true.<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp; nstep=5000,<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; &nbsp;/<BR>&gt;&gt;&gt; &nbsp;&amp;system<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp; ibrav= 1,&nbsp; celldm(1) =11.716301129,<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp;<BR>&gt;&nbsp; nat=&nbsp; 2, ntyp= 2, nbnd=11,<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp; ecutwfc =40,<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp; lda_plus_u = .true.,<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp; Hubbard_U(2) = 0.5,(this value is just for the run)<BR>&gt;&gt;&gt;
 &nbsp;&nbsp;&nbsp; Hubbard_U(1) = 0.6,(this value is just for the run)<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; &nbsp; /<BR>&gt;&gt;&gt; &nbsp;&amp;electrons<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp; conv_thr =&nbsp; 1.0d-8<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp; mixing_beta= 0.5<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp; mixing_mode='plain'<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp; diagonalization='cg'<BR>&gt;&gt;&gt; &nbsp;/<BR>&gt;&gt;&gt; &nbsp;&amp;IONS<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp; ion_dynamics='damp',<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp; pot_extrapolation='second_order'<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp; wfc_extrapolation='second_order'<BR>&gt;&gt;&gt; &nbsp;/<BR>&gt;&gt;&gt; &nbsp;&amp;CELL<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp; cell_dynamics='damp-w'<BR>&gt;&gt;&gt; &nbsp;/<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; ATOMIC_SPECIES<BR>&gt;&gt;&gt;<BR>&gt;&nbsp; &nbsp;Pb&nbsp; 207.21&nbsp;&nbsp;&nbsp;<BR>&gt;&gt;&gt; &nbsp; Pb.pbe-d-van.UPF<BR>&gt;&gt;&gt; &nbsp;Se&nbsp;
 78.96&nbsp;&nbsp;&nbsp;&nbsp; Se.pbe-van.UPF<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; ATOMIC_POSITIONS (alat)<BR>&gt;&gt;&gt; Pb&nbsp;&nbsp;&nbsp; &nbsp;0.000000000&nbsp;&nbsp; 0.000000000&nbsp;&nbsp; 0.000000000<BR>&gt;&gt;&gt; Se&nbsp;&nbsp;&nbsp; &nbsp;0.5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.5<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; K_POINTS { automatic }<BR>&gt;&gt;&gt; &nbsp;8&nbsp; 8&nbsp; 8&nbsp;&nbsp; 0 0 0<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; Im getting the following error:<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; from set_hubbard_l : error #&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1<BR>&gt;&gt;&gt; &nbsp;&nbsp;&nbsp;&nbsp; pseudopotential not yet inserted<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; I was wondering if anyone could help me.<BR>&gt;&gt;&gt; Tanks in advance<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; &nbsp;<BR>&gt;&gt;&gt; Meghdad Saeedian<BR>&gt;&gt;&gt; MSc<BR>&gt;&nbsp; graduated from
 the University Of Tehran, Departemant Of Physics<BR><BR><BR></DIV></BLOCKQUOTE></td></tr></table>