Dear Paolo and Axel,<br><br>I am using Ubuntu 7.10 gutsy gibbon version... and bash shell ... i removed th () from the line 2 of check_failure.sh file... and on running example 01 ... i get ...<br><br>../check_failure.sh: 2: function: not found<br>
test: 8: 0: unexpected operator<br>../check_failure.sh: 9: Syntax error: &quot;}&quot; unexpected<br><br>my check_failure.sh file is <br><br># function to test the exit status of a job<br>function check_failure {<br>&nbsp;&nbsp;&nbsp; # usage: check_failure $?<br>
&nbsp;&nbsp;&nbsp; if test $1 != 0; then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $ECHO &quot;Error condition encountered during test: exit status = $1&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $ECHO &quot;Aborting&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit 1<br>&nbsp;&nbsp;&nbsp; fi<br>}<br><br><br><br><div class="gmail_quote">
On Sun, Mar 23, 2008 at 12:47 PM,  &lt;<a href="mailto:pw_forum-request@pwscf.org">pw_forum-request@pwscf.org</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Send Pw_forum mailing list submissions to<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a 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; &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 &#39;help&#39; to<br>
 &nbsp; &nbsp; &nbsp; &nbsp;<a 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; &nbsp;<a 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 &quot;Re: Contents of Pw_forum digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
 &nbsp; 1. Re: error in relaxation (Paolo Giannozzi)<br>
 &nbsp; 2. Re: pain in running example (Paolo Giannozzi)<br>
 &nbsp; 3. CaCuO2 and LDA+U (Chao Cao)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sat, 22 Mar 2008 17:20:10 +0100<br>
From: Paolo Giannozzi &lt;<a href="mailto:giannozz@nest.sns.it">giannozz@nest.sns.it</a>&gt;<br>
Subject: Re: [Pw_forum] error in relaxation<br>
To: PWSCF Forum &lt;<a href="mailto:pw_forum@pwscf.org">pw_forum@pwscf.org</a>&gt;<br>
Message-ID: &lt;<a href="mailto:200803221720.10168.giannozz@nest.sns.it">200803221720.10168.giannozz@nest.sns.it</a>&gt;<br>
Content-Type: text/plain; &nbsp;charset=&quot;iso-8859-1&quot;<br>
<br>
On Friday 21 March 2008 09:34, <a href="mailto:madhura@jncasr.ac.in">madhura@jncasr.ac.in</a> wrote:<br>
<br>
&gt; &nbsp;I am using version 3.2 of package to perform surface calculations.<br>
<br>
you should as a strict minumum use 3.2.3, that contains many bug fixes<br>
<br>
&gt; &nbsp; &nbsp; &nbsp;lsda relaxation : &nbsp;a final configuration with zero<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; absolute magnetization has been found<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp;the program is checking if it is really the minimum energy structure<br>
&gt; by performing a new scf iteration without any &quot;electronic&quot; history<br>
&gt; --<br>
&gt; And the job stops till the run time limit is over, even when restarted, it<br>
&gt; gives the same message and nothing happens again till run time gets over.<br>
&gt; Is it going in some kind of infinite loop or something?<br>
<br>
it is a bug that has already been fixed, probably in the cvs version<br>
<br>
Paolo<br>
<br>
--<br>
Paolo Giannozzi, Democritos and Udine University<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Sat, 22 Mar 2008 17:16:49 +0100<br>
From: Paolo Giannozzi &lt;<a href="mailto:giannozz@nest.sns.it">giannozz@nest.sns.it</a>&gt;<br>
Subject: Re: [Pw_forum] pain in running example<br>
To: PWSCF Forum &lt;<a href="mailto:pw_forum@pwscf.org">pw_forum@pwscf.org</a>&gt;<br>
Message-ID: &lt;<a href="mailto:200803221716.49022.giannozz@nest.sns.it">200803221716.49022.giannozz@nest.sns.it</a>&gt;<br>
Content-Type: text/plain; &nbsp;charset=&quot;iso-8859-1&quot;<br>
<br>
On Saturday 22 March 2008 05:30, Axel Kohlmeyer wrote:<br>
<br>
&gt; let&#39;s see if we can solve this without bothering paolo...<br>
<br>
...who moreover is on a 56k line from his mother&#39;s phone...<br>
<br>
&gt; SG&gt; ../check_failure.sh: 2: Syntax error: &quot;(&quot; unexpected<br>
&gt; SG&gt;<br>
&gt; SG&gt; could u plz help me out<br>
&gt;<br>
&gt; you have to look at what line 2 in check_failure.sh does.<br>
<br>
some machines don&#39;t like the syntax used in the definition of<br>
function check_failure . Somebody told me something about<br>
/bin/sh being linked on some linux distributions (Ubuntu?) to<br>
some funny shell instead of a true Bourne shell or to bash. It<br>
should work if the () are removed from the first line of<br>
check_failure.sh<br>
<br>
Paolo<br>
--<br>
Paolo Giannozzi, Democritos and Udine University<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Sat, 22 Mar 2008 13:43:49 -0400<br>
From: Chao Cao &lt;<a href="mailto:cao@qtp.ufl.edu">cao@qtp.ufl.edu</a>&gt;<br>
Subject: [Pw_forum] CaCuO2 and LDA+U<br>
To: <a href="mailto:pw_forum@pwscf.org">pw_forum@pwscf.org</a><br>
Message-ID: &lt;<a href="mailto:47E54555.9030301@qtp.ufl.edu">47E54555.9030301@qtp.ufl.edu</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Dear PWSCF users and developers:<br>
<br>
I have been trying to use PWSCF&#39;s implementation of LDA+U to calculate<br>
the electronic structure of CaCuO2 lately. In VASP, once I turn on U, it<br>
gives AFM ground state and reasonable gap separation at E_F. However,<br>
the procedure seems to be much harder for PWSCF. While it gets AFM gs<br>
correctly, I can never get a band gap. I searched the forum, and I<br>
realized that the initial occupation number might be important, but the<br>
several combinations I tried seem to give me the same result. So, is<br>
there any hint or suggestions, especially how to choose initial<br>
occupation numbers? Thanks in advance.<br>
<br>
<br>
Best,<br>
<br>
Chao Cao<br>
<br>
<br>
And, here&#39;s my input file:<br>
<br>
&amp;control<br>
 &nbsp;calculation = &#39;scf&#39;<br>
 &nbsp;restart_mode = &#39;from_scratch&#39;<br>
 &nbsp;prefix = &#39;CaCuO2&#39;<br>
 &nbsp;disk_io = &#39;low&#39;<br>
 &nbsp;outdir = &#39;./&#39;<br>
/<br>
&amp;system<br>
 &nbsp;ibrav = 0, celldm(1) = 1.88972688, ntyp = 4, nat = 16<br>
 &nbsp;nbnd=80, ecutwfc = 32, ecutrho = 400<br>
 &nbsp;nspin = 2, starting_magnetization(2)=0.5, starting_magnetization(3)=-0.5<br>
 &nbsp;lda_plus_u = .true., Hubbard_U(2) = 6.5, Hubbard_U(3) = 6.5<br>
 &nbsp;occupations = &#39;smearing&#39;, smearing = &#39;mp&#39;, degauss = 0.007<br>
/<br>
&amp;electrons<br>
 &nbsp;mixing_beta = 0.2<br>
 &nbsp;conv_thr = 1.0d-9<br>
/<br>
ATOMIC_SPECIES<br>
Ca &nbsp; 1.0 &nbsp;Ca.pbe-nsp-van.UPF<br>
Cuu &nbsp;1.0 &nbsp;Cu.pbe-n-van.UPF<br>
Cud &nbsp;1.0 &nbsp;Cu.pbe-n-van.UPF<br>
O &nbsp; &nbsp;1.0 &nbsp; O.pbe-van.UPF<br>
ATOMIC_POSITIONS crystal<br>
Ca &nbsp; 0.25 &nbsp;0.75 &nbsp;0.25<br>
Ca &nbsp; 0.75 &nbsp;0.25 &nbsp;0.25<br>
Ca &nbsp; 0.25 &nbsp;0.75 &nbsp;0.75<br>
Ca &nbsp; 0.75 &nbsp;0.25 &nbsp;0.75<br>
Cuu &nbsp;0.25 &nbsp;0.25 &nbsp;0.00<br>
Cuu &nbsp;0.75 &nbsp;0.75 &nbsp;0.50<br>
Cud &nbsp;0.75 &nbsp;0.75 &nbsp;0.00<br>
Cud &nbsp;0.25 &nbsp;0.25 &nbsp;0.50<br>
O &nbsp; &nbsp;0.00 &nbsp;0.00 &nbsp;0.00<br>
O &nbsp; &nbsp;0.50 &nbsp;0.00 &nbsp;0.00<br>
O &nbsp; &nbsp;0.00 &nbsp;0.50 &nbsp;0.00<br>
O &nbsp; &nbsp;0.50 &nbsp;0.50 &nbsp;0.00<br>
O &nbsp; &nbsp;0.00 &nbsp;0.00 &nbsp;0.50<br>
O &nbsp; &nbsp;0.50 &nbsp;0.00 &nbsp;0.50<br>
O &nbsp; &nbsp;0.00 &nbsp;0.50 &nbsp;0.50<br>
O &nbsp; &nbsp;0.50 &nbsp;0.50 &nbsp;0.50<br>
K_POINTS automatic<br>
 &nbsp;8,8,4,1,1,1<br>
CELL_PARAMETERS cubic<br>
 &nbsp; 3.878393250 &nbsp; 3.878393249 &nbsp; 0.000000000<br>
 &nbsp;-3.878393249 &nbsp; 3.878393250 &nbsp; 0.000000000<br>
 &nbsp; 0.000000000 &nbsp; 0.000000000 &nbsp; 6.409031058<br>
<br>
<br>
<br>
<br>
--<br>
Chao Cao<br>
<br>
Quantum Theory Project and Department of Physics<br>
University of Florida, Gainesville, FL 32611<br>
U.S.A.<br>
<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Pw_forum mailing list<br>
<a 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 9, Issue 31<br>
***************************************<br>
</blockquote></div><br>