<p dir="ltr">Dear Users of Wien2k and WIEN2WANNIER:</p>
<p dir="ltr">We came across a minor compatibility issue between WIEN2WANNIER and a newer version Wien2k (v12 and above).</p>
<p dir="ltr">Apparently, the complex calculation is not resolved properly by w2w. The following line in 'w2w' script searches for a pattern "lapw1 -c" in a dayfile</p>
<p dir="ltr">tmp="$(grep "lapw1 -c" "$SEEDNAME.dayfile")"</p>
<p dir="ltr">However, the number of spaces between 'lapw1' and '-c' has changes in wien2k while going from v11 to v12 and higher. As a result, the complex calculation is not identified properly.</p>
<p dir="ltr">I suggest to change the line to the following (note the space between 1 and *)</p>
<p dir="ltr">tmp="$(grep "lapw1 *-c" "$SEEDNAME.dayfile")"</p>
<p dir="ltr">This code is compatible with any number of spaces. </p>
<p dir="ltr">The modification is absolutely critical for proper calculation of polarization with BerryPi.<br></p>
<p dir="ltr">Best regards<br>
Oleg</p>