<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Abid, <br>
</p>
<p>did you use uHu_formatted=True in Wannier90 ? or, remove the
formatted=uHu tag to have it as a binary. Will it work this way?<br>
</p>
<p>If that does not solve the problem, may be a bug in WannierBerri,
please post a message on the corresponding list:
<a class="moz-txt-link-freetext" href="https://physik.lists.uzh.ch/sympa/info/wannier-berri">https://physik.lists.uzh.ch/sympa/info/wannier-berri</a></p>
<p>Regards,</p>
<p>Stepan.<br>
</p>
<div class="moz-cite-prefix">On 03.03.21 05:44, Abid Rehman wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAFO17yOcyTG70x+CCMZ+EUa82SYXXtGhc_gj+CFbswjEu6hiFA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Hi Wannier90 developers and Users,</div>
<div>As you know vasp2wannier90 doesn't generate the <b>wannier90.uHu</b> file.
For this i used wannierBerri code to generate it from
wannier90.mmn, wannier90.amn files. Using the <b><span
style="color:rgb(64,64,64);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation
Mono","Courier
New",Courier,monospace;font-size:12px;box-sizing:border-box">wannierberri</span><span
style="font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation
Mono","Courier
New",Courier,monospace;font-size:12px;box-sizing:border-box;color:rgb(102,102,102)">.</span><span
style="color:rgb(64,64,64);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation
Mono","Courier
New",Courier,monospace;font-size:12px;box-sizing:border-box">mmn2uHu</span></b> module,
I successfully generated the w<b>annier90.uHu</b> file using
the command-line <b>python3 -m wannierberri.mmn2uHu wannier90
formatted=uHu</b>. But when I use this file in
postwannier90 to calculate orbital magnetization, it gives an
error like that: <b>wannier90.uHu has not the right number of
bands</b>.</div>
<div>Let me mention that the number bands in my wannier90.eign
file is 256. In my wannier90.win file: <b>num_bands = 256</b> and <b>num_wann
= 188</b>. The generated wannier90.uHu via wannierBerri
also has 256 bands. Then why this error is happening. I don't
know how to resolve it. </div>
<div>Please help me in this regard. </div>
<div>Best Reds</div>
<div>Abid</div>
<div><br>
</div>
<img src="cid:part1.A1D8D14F.CAB6F29A@gmail.com" alt="pic.jpg"
class="" width="492" height="481"><br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Wannier mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Wannier@lists.quantum-espresso.org">Wannier@lists.quantum-espresso.org</a>
<a class="moz-txt-link-freetext" href="https://lists.quantum-espresso.org/mailman/listinfo/wannier">https://lists.quantum-espresso.org/mailman/listinfo/wannier</a>
</pre>
</blockquote>
</body>
</html>