<div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Dear all,</blockquote><div>Respected Mr. Ibrahim, <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
?? I am trying to run xspectra calculation on MgSe. Knowing that there is no gipaw pseudopotential for both contributing element on<br>
? the pwscf-pseudo page, i tried to generate one for both Mg and Se. After running scf with this pseudo, i proceed to running the<br>
? xspectra with xspectra.x but to my surprise, it keeps given this error ;<br>
<br>
? ?? from allocate_fft : error #???????? 1<br>
???? the nr&quot;s are too small!<br>
Please, can anybody help me out with this?<br>
<br></blockquote><div><br>A helpful tool(weapon :D) for tracking down errors is to use (learnt from Prof. Gianozzi&#39;s replies on the forum)<br>$ grep -e &#39;&lt;the error&gt;&#39; */*.f90 <br><br> In this case,, <br>
$ grep -e &#39;are too small&#39; */*.f90 <br><br>Results gives  the relevant code file where it occurs.<br><br>$PW/allocate_fft.f90:     CALL errore (&#39;allocate_fft&#39;, &#39;the nr&quot;s are too small!&#39;, 1)<br>
$PW/allocate_fft.f90:     CALL errore (&#39;allocate_fft&#39;, &#39;the nrs&quot;s are too small!&#39;, 1)<br><br>A look at the file PW/allocate_fft.f90 suggests that <br>---------------------------------<br>  IF (nrxx.lt.ngm) THEN<br>
     WRITE( stdout, &#39;(/,4x,&quot; nr1=&quot;,i4,&quot; nr2= &quot;, i4, &quot; nr3=&quot;,i4, &amp;<br>          &amp;&quot; nrxx = &quot;,i8,&quot; ngm=&quot;,i8)&#39;) nr1, nr2, nr3, nrxx, ngm<br>     CALL errore (&#39;allocate_fft&#39;, &#39;the nr&quot;s are too small!&#39;, 1)<br>
---------------------------------<br><br>Here<br>nrxx = nr1*nr2*nr3 (Modules/griddim.f90), the minimal 3D real-space FFT  grid required to fit the G-vector sphere with G^2 &lt;= gcut<br>ngm = local  number of G vectors (Modules/recvec.f90).<br>
<br>I have not generated PPs, but I can only infer that your FFT grid density is not sufficient enough to accommodate the G-vectors.<br><br>Sincerely,<br> <br></div>--<br>Sreekar Guddeti<br>Undergraduate (5th year)<br></div>
Engineering Physics<br>IIT Bombay<br>India<br><br>