<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 1, 2015 at 9:39 PM, stefano de gironcoli <span dir="ltr"><<a href="mailto:degironc@sissa.it" target="_blank">degironc@sissa.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<div text="#000000" bgcolor="#FFFFFF"><span class=""><blockquote type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>
In passing, while looking into that, I found a bug
PW/src/init_us_2.f90<br>
<br>
</div>
At the beginning of the routine the out variable vkb_
should be initialized<br>
vkb_(:, :) = (0.d0,0.d0)<br>
<br>
</div>
I had some NaN due to that and adding the zeroing solved it.
<br>
</div>
</div>
</div>
</blockquote></span>
I thought that having defined the variable INTENT(OUT) it should be
zeroed automatically but probably it is not always like that. thanks.<br></div></blockquote><div><br></div><div text="#000000" bgcolor="#FFFFFF">moreover, one should never access those array elements. Anyway: see the commit I just made<br></div></div><br></div><div class="gmail_extra">Paolo<br clear="all"></div><div class="gmail_extra"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><span><span><font color="#888888">Paolo Giannozzi, Dept. Chemistry&Physics&Environment,<br>
Univ. Udine, via delle Scienze 208, 33100 Udine, Italy<br>
Phone <a href="tel:%2B39-0432-558216" value="+390432558216" target="_blank">+39-0432-558216</a>, fax <a href="tel:%2B39-0432-558222" value="+390432558222" target="_blank">+39-0432-558222</a></font></span></span></div></div></div></div>
</div></div>